Click or drag to resize

SyntaxExtensions Class



Inheritance Hierarchy
SystemObject
  Microsoft.CodeAnalysis.CSharpSyntaxExtensions

Namespace:  Microsoft.CodeAnalysis.CSharp
Assembly:  Microsoft.CodeAnalysis.CSharp (in Microsoft.CodeAnalysis.CSharp.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public static class SyntaxExtensions

The SyntaxExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberNormalizeWhitespace(SyntaxToken, String, Boolean)
Creates a new syntax token with all whitespace and end of line trivia replaced with regularly formatted trivia.
Public methodStatic memberNormalizeWhitespace(SyntaxTriviaList, String, Boolean)
Creates a new syntax trivia list with all whitespace and end of line trivia replaced with regularly formatted trivia.
Public methodStatic memberNormalizeWhitespace(SyntaxToken, String, String, Boolean)
Creates a new syntax token with all whitespace and end of line trivia replaced with regularly formatted trivia.
Public methodStatic memberNormalizeWhitespace(SyntaxTriviaList, String, String, Boolean)
Creates a new syntax trivia list with all whitespace and end of line trivia replaced with regularly formatted trivia.
Public methodStatic memberToSyntaxTriviaList
Public methodStatic memberUpdate(IndexerDeclarationSyntax, SyntaxListAttributeListSyntax, SyntaxTokenList, TypeSyntax, ExplicitInterfaceSpecifierSyntax, SyntaxToken, BracketedParameterListSyntax, AccessorListSyntax)
Public methodStatic memberUpdate(OperatorDeclarationSyntax, SyntaxListAttributeListSyntax, SyntaxTokenList, TypeSyntax, SyntaxToken, SyntaxToken, ParameterListSyntax, BlockSyntax, SyntaxToken)
Public methodStatic memberUpdate(MethodDeclarationSyntax, SyntaxListAttributeListSyntax, SyntaxTokenList, TypeSyntax, ExplicitInterfaceSpecifierSyntax, SyntaxToken, TypeParameterListSyntax, ParameterListSyntax, SyntaxListTypeParameterConstraintClauseSyntax, BlockSyntax, SyntaxToken)
Public methodStatic memberWithIdentifier
Updates the given SimpleNameSyntax node with the given identifier token. This function is a wrapper that calls WithIdentifier on derived syntax nodes.
Top
See Also