3 types derived from CSharpSyntaxNode
Microsoft.CodeAnalysis.CSharp (3)
Syntax\InternalSyntax\StructuredTriviaSyntax.cs (1)
11internal abstract partial class StructuredTriviaSyntax : CSharpSyntaxNode
Syntax\InternalSyntax\SyntaxToken.cs (1)
15internal partial class SyntaxToken : CSharpSyntaxNode
Syntax\InternalSyntax\SyntaxTrivia.cs (1)
10internal class SyntaxTrivia : CSharpSyntaxNode
128 references to CSharpSyntaxNode
Microsoft.CodeAnalysis.CSharp (126)
CSharpExtensions.cs (2)
324return ((Syntax.InternalSyntax.CSharpSyntaxNode)node.Green).ApplyDirectives(stack); 329return ((Syntax.InternalSyntax.CSharpSyntaxNode)token.Node!).ApplyDirectives(stack);
Declarations\DeclarationTreeBuilder.cs (5)
988static bool checkPropertyOrFieldMemberForRequiredModifier(Syntax.InternalSyntax.CSharpSyntaxNode member) 1052private static bool CheckMethodMemberForExtensionSyntax(Syntax.InternalSyntax.CSharpSyntaxNode member) 1079private static bool CheckMemberForAttributes(Syntax.InternalSyntax.CSharpSyntaxNode member) 1129Syntax.InternalSyntax.CSharpSyntaxNode member, HashSet<string> set) 1227Syntax.InternalSyntax.CSharpSyntaxNode member, bool skipGlobalStatements)
Parser\Blender.Reader.cs (1)
242(nodeOrToken.IsToken && ((CSharpSyntaxNode)nodeOrToken.AsToken().Node).ContainsSkippedText && nodeOrToken.Parent.ContainsDiagnostics))
Parser\DirectiveParser.cs (4)
31public CSharpSyntaxNode ParseDirective( 49CSharpSyntaxNode result; 292foreach (var t in keyword.TrailingTrivia) 308foreach (var node in eod.LeadingTrivia)
Parser\DocumentationCommentParser.cs (4)
377) where T : CSharpSyntaxNode 418list[list.Count - 1] = AddTrailingSkippedSyntax((CSharpSyntaxNode)list[list.Count - 1], badTokens.ToListNode()); 831private TNode WithXmlParseError<TNode>(TNode node, XmlParseErrorCode code) where TNode : CSharpSyntaxNode 836private TNode WithXmlParseError<TNode>(TNode node, XmlParseErrorCode code, params string[] args) where TNode : CSharpSyntaxNode
Parser\LanguageParser.cs (26)
208internal TNode ParseWithStackGuard<TNode>(Func<LanguageParser, TNode> parseFunc, Func<LanguageParser, TNode> createEmptyNodeFunc) where TNode : CSharpSyntaxNode 224private TNode CreateForGlobalFailure<TNode>(int position, TNode node) where TNode : CSharpSyntaxNode 366CSharpSyntaxNode skippedSyntax) 2040(CSharpSyntaxNode)previousNode, 2210CSharpSyntaxNode tmp = null; 3273public static bool IsComplete(CSharpSyntaxNode node) 3284return IsComplete((CSharpSyntaxNode)child); 4250where T : CSharpSyntaxNode 4251where TNode : CSharpSyntaxNode 4270where T : CSharpSyntaxNode 4271where TNode : CSharpSyntaxNode 4316out GreenNode trailingTrivia) where TNode : CSharpSyntaxNode 4904private TNode EatUnexpectedTrailingSemicolon<TNode>(TNode decl) where TNode : CSharpSyntaxNode 5095CSharpSyntaxNode tmp = null; 6345CSharpSyntaxNode tmp = null; 7757PostSkipAction skipBadFunctionPointerTokens<T>(SeparatedSyntaxListBuilder<T> list) where T : CSharpSyntaxNode 7759CSharpSyntaxNode? tmp = null; 8676CSharpSyntaxNode openBrace = isAccessorBody && this.CurrentToken.Kind != SyntaxKind.OpenBraceToken 8713CSharpSyntaxNode openBrace = this.EatToken(SyntaxKind.OpenBraceToken); 8747private void ParseStatements(ref CSharpSyntaxNode previousNode, SyntaxListBuilder<StatementSyntax> statements, bool stopOnSwitchSections) 9813var node = ParseExpressionOrPatternForSwitchStatement(); 9852CSharpSyntaxNode tmp = labels[^1]; 11444var node = this.ParseTypeOrPatternForIsOperator(); 13015where T : CSharpSyntaxNode 13780CSharpSyntaxNode tmp = null; 14117internal TNode ConsumeUnexpectedTokens<TNode>(TNode node) where TNode : CSharpSyntaxNode
Parser\LanguageParser_Patterns.cs (4)
21private CSharpSyntaxNode ParseTypeOrPatternForIsOperator() 434private CSharpSyntaxNode ParseExpressionOrPatternForSwitchStatement() 443private CSharpSyntaxNode ConvertPatternToExpressionIfPossible(PatternSyntax pattern, bool permitTypeArguments = false) 541where T : CSharpSyntaxNode
Parser\Lexer.cs (16)
1989var endOfLine = this.ScanEndOfLine(); 2217private void AddTrivia(CSharpSyntaxNode trivia, [NotNull] ref SyntaxListBuilder? list) 2273private CSharpSyntaxNode? ScanEndOfLine() 2368var directive = this.LexSingleDirective(true, true, isFollowingToken, ref triviaList); 2383var text = this.LexDisabledText(out hasFollowingDirective); 2394var directive = this.LexSingleDirective(false, endIsActive, false, ref triviaList); 2407private CSharpSyntaxNode LexSingleDirective( 2419CSharpSyntaxNode directive = ParseDirective(isActive, endIsActive, isFollowingToken); 2426private CSharpSyntaxNode ParseDirective( 2436CSharpSyntaxNode directive = _directiveParser.ParseDirective(isActive, endIsActive, isFollowingToken); 2443private CSharpSyntaxNode? LexDisabledText(out bool followedByDirective) 2723CSharpSyntaxNode? tr; 2753private CSharpSyntaxNode? LexDirectiveTrivia() 2755CSharpSyntaxNode? trivia = null; 2799private CSharpSyntaxNode LexXmlDocComment(XmlDocCommentStyle style) 4541var endOfLine = this.ScanEndOfLine();
Parser\SyntaxParser.cs (16)
726SyntaxList<CSharpSyntaxNode> triviaList = new SyntaxList<CSharpSyntaxNode>(trivia); 794foreach (var trivia in token.TrailingTrivia) 819protected TNode AddError<TNode>(TNode node, int offset, int length, ErrorCode code, params object[] args) where TNode : CSharpSyntaxNode 824protected TNode AddError<TNode>(TNode node, CSharpSyntaxNode location, ErrorCode code, params object[] args) where TNode : CSharpSyntaxNode 832protected TNode AddErrorToFirstToken<TNode>(TNode node, ErrorCode code) where TNode : CSharpSyntaxNode 838protected TNode AddErrorToFirstToken<TNode>(TNode node, ErrorCode code, params object[] args) where TNode : CSharpSyntaxNode 844protected TNode AddErrorToLastToken<TNode>(TNode node, ErrorCode code) where TNode : CSharpSyntaxNode 852protected TNode AddErrorToLastToken<TNode>(TNode node, ErrorCode code, params object[] args) where TNode : CSharpSyntaxNode 860private static void GetOffsetAndWidthForLastToken<TNode>(TNode node, out int offset, out int width) where TNode : CSharpSyntaxNode 895protected TNode AddLeadingSkippedSyntax<TNode>(TNode node, GreenNode? skippedSyntax) where TNode : CSharpSyntaxNode 909list[list.Count - 1] = AddTrailingSkippedSyntax((CSharpSyntaxNode)list[list.Count - 1], skippedSyntax); 912protected void AddTrailingSkippedSyntax<TNode>(SyntaxListBuilder<TNode> list, GreenNode skippedSyntax) where TNode : CSharpSyntaxNode 917protected TNode AddTrailingSkippedSyntax<TNode>(TNode node, GreenNode skippedSyntax) where TNode : CSharpSyntaxNode 1050private bool FindOffset(GreenNode root, CSharpSyntaxNode location, out int offset)
Syntax\CSharpSyntaxNode.cs (2)
142internal Syntax.InternalSyntax.CSharpSyntaxNode CsGreen 144get { return (Syntax.InternalSyntax.CSharpSyntaxNode)this.Green; }
Syntax\InternalSyntax\CSharpSyntaxNode.cs (1)
172return ((CSharpSyntaxNode)listOrNode).ApplyDirectives(stack);
Syntax\InternalSyntax\CSharpSyntaxRewriter.cs (6)
11internal partial class CSharpSyntaxRewriter : CSharpSyntaxVisitor<CSharpSyntaxNode> 21public override CSharpSyntaxNode VisitToken(SyntaxToken token) 42public SyntaxList<TNode> VisitList<TNode>(SyntaxList<TNode> list) where TNode : CSharpSyntaxNode 48var visited = this.Visit(item); 70public SeparatedSyntaxList<TNode> VisitList<TNode>(SeparatedSyntaxList<TNode> list) where TNode : CSharpSyntaxNode 75var withSeps = (SyntaxList<CSharpSyntaxNode>)list.GetWithSeparators();
Syntax\InternalSyntax\CSharpSyntaxVisitor.cs (4)
15public virtual TResult Visit(CSharpSyntaxNode node) 35protected virtual TResult DefaultVisit(CSharpSyntaxNode node) 43public virtual void Visit(CSharpSyntaxNode node) 63public virtual void DefaultVisit(CSharpSyntaxNode node)
Syntax\InternalSyntax\SyntaxFactory.cs (18)
257public static SyntaxList<TNode> List<TNode>() where TNode : CSharpSyntaxNode 262public static SyntaxList<TNode> List<TNode>(TNode node) where TNode : CSharpSyntaxNode 267public static SyntaxList<TNode> List<TNode>(TNode node0, TNode node1) where TNode : CSharpSyntaxNode 272internal static GreenNode ListNode(CSharpSyntaxNode node0, CSharpSyntaxNode node1) 277public static SyntaxList<TNode> List<TNode>(TNode node0, TNode node1, TNode node2) where TNode : CSharpSyntaxNode 282internal static GreenNode ListNode(CSharpSyntaxNode node0, CSharpSyntaxNode node1, CSharpSyntaxNode node2) 287public static SyntaxList<TNode> List<TNode>(params TNode[] nodes) where TNode : CSharpSyntaxNode 302public static SeparatedSyntaxList<TNode> SeparatedList<TNode>(TNode node) where TNode : CSharpSyntaxNode 304return new SeparatedSyntaxList<TNode>(new SyntaxList<CSharpSyntaxNode>(node)); 307public static SeparatedSyntaxList<TNode> SeparatedList<TNode>(SyntaxToken token) where TNode : CSharpSyntaxNode 309return new SeparatedSyntaxList<TNode>(new SyntaxList<CSharpSyntaxNode>(token)); 312public static SeparatedSyntaxList<TNode> SeparatedList<TNode>(TNode node1, SyntaxToken token, TNode node2) where TNode : CSharpSyntaxNode 314return new SeparatedSyntaxList<TNode>(new SyntaxList<CSharpSyntaxNode>(SyntaxList.List(node1, token, node2))); 317public static SeparatedSyntaxList<TNode> SeparatedList<TNode>(params CSharpSyntaxNode[] nodes) where TNode : CSharpSyntaxNode
Syntax\InternalSyntax\SyntaxFirstTokenReplacer.cs (4)
30where TRoot : CSharpSyntaxNode 38public override CSharpSyntaxNode Visit(CSharpSyntaxNode node) 59private static TSyntax UpdateDiagnosticOffset<TSyntax>(TSyntax node, int diagnosticOffsetDelta) where TSyntax : CSharpSyntaxNode
Syntax\InternalSyntax\SyntaxLastTokenReplacer.cs (4)
28where TRoot : CSharpSyntaxNode 37private static int CountNonNullSlots(CSharpSyntaxNode node) 42public override CSharpSyntaxNode Visit(CSharpSyntaxNode node)
Syntax\InternalSyntax\SyntaxToken.cs (6)
246internal static SyntaxToken StringLiteral(CSharpSyntaxNode leading, string text, CSharpSyntaxNode trailing) 332internal SyntaxList<CSharpSyntaxNode> LeadingTrivia 334get { return new SyntaxList<CSharpSyntaxNode>(this.GetLeadingTrivia()); } 337internal SyntaxList<CSharpSyntaxNode> TrailingTrivia 339get { return new SyntaxList<CSharpSyntaxNode>(this.GetTrailingTrivia()); }
Syntax\StructuredTriviaSyntax.cs (1)
16internal StructuredTriviaSyntax(InternalSyntax.CSharpSyntaxNode green, SyntaxNode parent, int position)
Syntax\SyntaxEquivalence.cs (2)
262using var beforeDirectivesEnumerator = ((Green.CSharpSyntaxNode)before).GetDirectives().GetEnumerator(); 263using var afterDirectivesEnumerator = ((Green.CSharpSyntaxNode)after).GetDirectives().GetEnumerator();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Syntax\SyntaxRewriterTests.cs (2)
696var green = red.CsGreen; 740var visited = base.Visit(node);