Sdílet prostřednictvím


SyntaxFactory.Identifier Method

Definition

Overloads

Identifier(String)

Creates a token with kind IdentifierToken containing the specified text.

Identifier(SyntaxTriviaList, String, SyntaxTriviaList)

Creates a token with kind IdentifierToken containing the specified text.

Identifier(SyntaxTriviaList, SyntaxKind, String, String, SyntaxTriviaList)

Creates a token with kind IdentifierToken containing the specified text.

Identifier(String)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

Creates a token with kind IdentifierToken containing the specified text.

public:
 static Microsoft::CodeAnalysis::SyntaxToken Identifier(System::String ^ text);
public static Microsoft.CodeAnalysis.SyntaxToken Identifier (string text);
static member Identifier : string -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Identifier (text As String) As SyntaxToken

Parameters

text
String

The raw text of the identifier name, including any escapes or leading '@' character.

Returns

Applies to

Identifier(SyntaxTriviaList, String, SyntaxTriviaList)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

Creates a token with kind IdentifierToken containing the specified text.

public:
 static Microsoft::CodeAnalysis::SyntaxToken Identifier(Microsoft::CodeAnalysis::SyntaxTriviaList leading, System::String ^ text, Microsoft::CodeAnalysis::SyntaxTriviaList trailing);
public static Microsoft.CodeAnalysis.SyntaxToken Identifier (Microsoft.CodeAnalysis.SyntaxTriviaList leading, string text, Microsoft.CodeAnalysis.SyntaxTriviaList trailing);
static member Identifier : Microsoft.CodeAnalysis.SyntaxTriviaList * string * Microsoft.CodeAnalysis.SyntaxTriviaList -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Identifier (leading As SyntaxTriviaList, text As String, trailing As SyntaxTriviaList) As SyntaxToken

Parameters

leading
SyntaxTriviaList

A list of trivia immediately preceding the token.

text
String

The raw text of the identifier name, including any escapes or leading '@' character.

trailing
SyntaxTriviaList

A list of trivia immediately following the token.

Returns

Applies to

Identifier(SyntaxTriviaList, SyntaxKind, String, String, SyntaxTriviaList)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

Creates a token with kind IdentifierToken containing the specified text.

public:
 static Microsoft::CodeAnalysis::SyntaxToken Identifier(Microsoft::CodeAnalysis::SyntaxTriviaList leading, Microsoft::CodeAnalysis::CSharp::SyntaxKind contextualKind, System::String ^ text, System::String ^ valueText, Microsoft::CodeAnalysis::SyntaxTriviaList trailing);
public static Microsoft.CodeAnalysis.SyntaxToken Identifier (Microsoft.CodeAnalysis.SyntaxTriviaList leading, Microsoft.CodeAnalysis.CSharp.SyntaxKind contextualKind, string text, string valueText, Microsoft.CodeAnalysis.SyntaxTriviaList trailing);
static member Identifier : Microsoft.CodeAnalysis.SyntaxTriviaList * Microsoft.CodeAnalysis.CSharp.SyntaxKind * string * string * Microsoft.CodeAnalysis.SyntaxTriviaList -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Identifier (leading As SyntaxTriviaList, contextualKind As SyntaxKind, text As String, valueText As String, trailing As SyntaxTriviaList) As SyntaxToken

Parameters

leading
SyntaxTriviaList

A list of trivia immediately preceding the token.

contextualKind
SyntaxKind

An alternative SyntaxKind that can be inferred for this token in special contexts. These are usually keywords.

text
String

The raw text of the identifier name, including any escapes or leading '@' character.

valueText
String

The text of the identifier name without escapes or leading '@' character.

trailing
SyntaxTriviaList

A list of trivia immediately following the token.

Returns

Applies to