Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
keyboardDrummer committed Nov 11, 2024
1 parent 8225028 commit 95583cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Source/Core/Generic/TokenWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public int CompareTo(IToken? other) {
return Inner.CompareTo(other);
}

public bool SourceToken => false;
public bool IsSourceToken => false;

public int kind {
get => Inner.kind;
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/Token.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public interface IToken : IComparable<IToken>
/// <summary>
/// True if this token was created during parsing
/// </summary>
bool SourceToken { get; }
bool IsSourceToken { get; }
int kind { get; set; } // token kind
string filename { get; set; } // token file
int pos { get; set; } // token position in the source text (starting at 0)
Expand Down Expand Up @@ -52,7 +52,7 @@ public Token(int linenum, int colnum)
this._val = "anything so that it is nonnull";
}

public bool SourceToken => true;
public bool IsSourceToken => true;

public int kind
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static (List<ManualSplit> Isolated, ManualSplit Remainder) GetParts(VCGen

var gotoFromReturn = gotoCmd.tok as GotoFromReturn;
var isolateAttribute = QKeyValue.FindAttribute(gotoCmd.Attributes, p => p.Key == "isolate");
var isTypeOfAssert = gotoFromReturn != null && gotoFromReturn.Origin.tok.SourceToken;
var isTypeOfAssert = gotoFromReturn != null && gotoFromReturn.Origin.tok.IsSourceToken;
var isolate = BlockRewriter.ShouldIsolate(isTypeOfAssert && splitOnEveryAssert, isolateAttribute);
if (!isolate) {
continue;
Expand Down

0 comments on commit 95583cd

Please sign in to comment.