SyntaxFactory.Identifier 方法

定义

重载

Identifier(String)

创建包含指定文本的 IdentifierToken 类型的标记。

Identifier(SyntaxTriviaList, String, SyntaxTriviaList)

创建包含指定文本的 IdentifierToken 类型的标记。

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

创建包含指定文本的 IdentifierToken 类型的标记。

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

创建包含指定文本的 IdentifierToken 类型的标记。

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

参数

text
String

标识符名称的原始文本,包括任何转义符或前导“@”字符。

返回

适用于

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

创建包含指定文本的 IdentifierToken 类型的标记。

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

参数

leading
SyntaxTriviaList

紧邻令牌前面的琐事列表。

text
String

标识符名称的原始文本,包括任何转义符或前导“@”字符。

trailing
SyntaxTriviaList

紧跟在令牌后面的琐事列表。

返回

适用于

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

创建包含指定文本的 IdentifierToken 类型的标记。

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

参数

leading
SyntaxTriviaList

紧邻令牌前面的琐事列表。

contextualKind
SyntaxKind

可在特殊上下文中推断此令牌的替代 SyntaxKind。 这些通常是关键字。

text
String

标识符名称的原始文本,包括任何转义符或前导“@”字符。

valueText
String

不带转义符或前导“@”字符的标识符名称的文本。

trailing
SyntaxTriviaList

紧跟在令牌后面的琐事列表。

返回

适用于