Skip to content

Commit

Permalink
refactor: Declare that a structure type is immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDave1999 committed Dec 30, 2023
1 parent bfe70fe commit a352969
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Models/Line.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace YeSql.Net;
/// <summary>
/// Represents a line of text from a file.
/// </summary>
internal struct Line
internal readonly struct Line
{
/// <summary>
/// Gets the number/position of the line.
Expand Down
2 changes: 1 addition & 1 deletion src/Models/ModelTag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// <summary>
/// Represents the tag with its associated SQL statement.
/// </summary>
public struct ModelTag
public readonly struct ModelTag
{
/// <summary>
/// Gets the name of the tag.
Expand Down
2 changes: 1 addition & 1 deletion src/Models/SqlFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace YeSql.Net;
/// <summary>
/// Represents the details of a SQL file.
/// </summary>
internal struct SqlFile
internal readonly struct SqlFile
{
/// <summary>
/// Gets or sets the file name of the SQL file.
Expand Down

0 comments on commit a352969

Please sign in to comment.