Udostępnij za pośrednictwem


SyntaxExtensions Class

Definition

public ref class SyntaxExtensions sealed
public sealed class SyntaxExtensions
type SyntaxExtensions = class
Public Module SyntaxExtensions
Inheritance
SyntaxExtensions

Methods

Attributes(AsClauseSyntax)

Returns the AttributeBlockSyntax of the given AsClauseSyntax if specified.

NormalizeWhitespace(SyntaxToken, String, Boolean)
NormalizeWhitespace(SyntaxToken, String, String, Boolean, Boolean)
NormalizeWhitespace(SyntaxTriviaList, String, String, Boolean, Boolean)
NormalizeWhitespace<TNode>(TNode, Boolean, String, Boolean)
NormalizeWhitespace<TNode>(TNode, Boolean, String, String, Boolean)
ToSyntaxTriviaList(IEnumerable<SyntaxTrivia>)
TryGetInferredMemberName(SyntaxNode)

Given an initializer expression infer the name of anonymous property or tuple element. Returns Nothing if unsuccessful

Type(AsClauseSyntax)

Returns the TypeSyntax of the given AsClauseSyntax if specified.

Type(NewExpressionSyntax)

Returns the TypeSyntax of the given NewExpressionSyntax if specified.

WithIdentifier(SimpleNameSyntax, SyntaxToken)

Updates the given SimpleNameSyntax node with the given identifier token. This function is a wrapper that calls WithIdentifier on derived syntax nodes.

Applies to