Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
c2be582
SyntaxRewriter: Remove VisitToken implementation
DustinCampbell Apr 3, 2025
6237c2b
SyntaxToken: Remove WithLeadingTrivia and WithTrailingTrivia
DustinCampbell Apr 3, 2025
7ff4145
SyntaxWalker: Remove VisitLeadingTrivia and VisitTrailingTrivia
DustinCampbell Apr 3, 2025
39a09d0
SyntaxNode: Remove HasLeadingTrivia and HasTrailingTrivia
DustinCampbell Apr 3, 2025
00f4ae5
SyntaxRewriter: Remove VisitList(SyntaxTriviaList)
DustinCampbell Apr 3, 2025
3060e2d
SyntaxTriviaList: Remove Enumerator.InitializeFrom helpers
DustinCampbell Apr 3, 2025
ac8fdb9
SyntaxNode: Remove GetLeadingTrivia and GetTrailingTrivia
DustinCampbell Apr 3, 2025
ab2325f
Remove SyntaxTriviaList and SyntaxTriviaListBuilder
DustinCampbell Apr 3, 2025
4371ff3
Internal.SyntaxToken: Remove uncalled constructors
DustinCampbell Apr 3, 2025
dffabf3
Internal.SyntaxRewriter: Remove VisitToken implementation
DustinCampbell Apr 3, 2025
8bc91a1
GreenNode: Remove WithLeadingTrivia and WithTrailingTrivia
DustinCampbell Apr 3, 2025
758cc7d
Internal.SyntaxToken: Remove LeadingTrivia and TrailingTrivia
DustinCampbell Apr 3, 2025
34f2a80
GeenNode: Remove HasLeadingTrivia and HasTrailingTrivia
DustinCampbell Apr 3, 2025
6197c1e
GreenNode: Remove GetLeadingTriviaWidth() and GetTrailingTriviaWidth()
DustinCampbell Apr 3, 2025
bdcc24f
GreenNode: Remove logic to write leading/trailing trivia
DustinCampbell Apr 3, 2025
099c81f
Internal.SyntaxToken: Don't compare trivia in IsEquivalentTo
DustinCampbell Apr 3, 2025
339803e
GreenNode: Remove GetLeadingTrivia() and GetTrailingTrivia()
DustinCampbell Apr 3, 2025
d17f252
Internal.SyntaxToken: Remove leading and trailing trivia fields
DustinCampbell Apr 3, 2025
5432996
Remove SyntaxTrivia and InternalSyntax.SyntaxTrivia
DustinCampbell Apr 3, 2025
1977b4a
GreenNode: Consolidate FullWidth and Width
DustinCampbell Apr 3, 2025
74259d7
SyntaxNode: Consolidate FullWidth and Width
DustinCampbell Apr 3, 2025
2186f51
SyntaxNode: Consolidate FullSpan and Span
DustinCampbell Apr 3, 2025
194bae9
Remove outdated comment and simplify GreenNode.WriteTo
DustinCampbell Apr 7, 2025
111ae93
Remove unused NodeFlags
DustinCampbell Apr 7, 2025
48b244a
GreenNode: Remove GetValue and GetValueText
DustinCampbell Apr 7, 2025
559723d
GreenNode: Remove GetFirstToken/Terminal and GetLastToken/Terminal
DustinCampbell Apr 7, 2025
8faf0e6
Remove SyntaxList<T>.FullSpan
DustinCampbell Apr 7, 2025
3d73b3b
GreenNode: Make ToString() to return the same text as ToFullString()
DustinCampbell Apr 7, 2025
947d638
Remove GreenNode.ToFullString() and SyntaxNode.ToFullString()
DustinCampbell Apr 7, 2025
684cae0
Merge branch 'main' into remove-dead-syntax
DustinCampbell Apr 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

#nullable disable
Expand Down Expand Up @@ -99,36 +99,6 @@ public override bool IsEquivalentTo(GreenNode other)
return false;
}

var thisLeading = GetLeadingTrivia();
var otherLeading = otherToken.GetLeadingTrivia();
if (thisLeading != otherLeading)
{
if (thisLeading == null || otherLeading == null)
{
return false;
}

if (!thisLeading.IsEquivalentTo(otherLeading))
{
return false;
}
}

var thisTrailing = GetTrailingTrivia();
var otherTrailing = otherToken.GetTrailingTrivia();
if (thisTrailing != otherTrailing)
{
if (thisTrailing == null || otherTrailing == null)
{
return false;
}

if (!thisTrailing.IsEquivalentTo(otherTrailing))
{
return false;
}
}

return true;
}

Expand Down