SyntaxFactory.MissingToken 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
MissingToken(SyntaxKind) |
创建与语法类型对应的缺失标记。 找不到预期的令牌时,分析程序会生成缺失的令牌。 缺少的令牌没有文本,并且通常具有关联的诊断。 |
MissingToken(SyntaxTriviaList, SyntaxKind, SyntaxTriviaList) |
创建与语法类型对应的缺失标记。 找不到预期的令牌时,分析程序会生成缺失的令牌。 缺少的令牌没有文本,并且通常具有关联的诊断。 |
MissingToken(SyntaxKind)
- 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
- Source:
- SyntaxFactory.cs
创建与语法类型对应的缺失标记。 找不到预期的令牌时,分析程序会生成缺失的令牌。 缺少的令牌没有文本,并且通常具有关联的诊断。
public:
static Microsoft::CodeAnalysis::SyntaxToken MissingToken(Microsoft::CodeAnalysis::CSharp::SyntaxKind kind);
public static Microsoft.CodeAnalysis.SyntaxToken MissingToken (Microsoft.CodeAnalysis.CSharp.SyntaxKind kind);
static member MissingToken : Microsoft.CodeAnalysis.CSharp.SyntaxKind -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function MissingToken (kind As SyntaxKind) As SyntaxToken
参数
- kind
- SyntaxKind
令牌的语法类型值。 它们具有后缀 Token 或 Keyword。
返回
适用于
MissingToken(SyntaxTriviaList, SyntaxKind, 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
- Source:
- SyntaxFactory.cs
创建与语法类型对应的缺失标记。 找不到预期的令牌时,分析程序会生成缺失的令牌。 缺少的令牌没有文本,并且通常具有关联的诊断。
public:
static Microsoft::CodeAnalysis::SyntaxToken MissingToken(Microsoft::CodeAnalysis::SyntaxTriviaList leading, Microsoft::CodeAnalysis::CSharp::SyntaxKind kind, Microsoft::CodeAnalysis::SyntaxTriviaList trailing);
public static Microsoft.CodeAnalysis.SyntaxToken MissingToken (Microsoft.CodeAnalysis.SyntaxTriviaList leading, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxTriviaList trailing);
static member MissingToken : Microsoft.CodeAnalysis.SyntaxTriviaList * Microsoft.CodeAnalysis.CSharp.SyntaxKind * Microsoft.CodeAnalysis.SyntaxTriviaList -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function MissingToken (leading As SyntaxTriviaList, kind As SyntaxKind, trailing As SyntaxTriviaList) As SyntaxToken
参数
- leading
- SyntaxTriviaList
紧邻令牌前面的琐事列表。
- kind
- SyntaxKind
令牌的语法类型值。 它们具有后缀 Token 或 Keyword。
- trailing
- SyntaxTriviaList
紧跟在令牌后面的琐事列表。