Share via


SyntaxFactory.MissingToken Method

Definition

Overloads

MissingToken(SyntaxKind)

Creates a missing token corresponding to syntax kind. A missing token is produced by the parser when an expected token is not found. A missing token has no text and normally has associated diagnostics.

MissingToken(SyntaxTriviaList, SyntaxKind, SyntaxTriviaList)

Creates a missing token corresponding to syntax kind. A missing token is produced by the parser when an expected token is not found. A missing token has no text and normally has associated diagnostics.

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

Creates a missing token corresponding to syntax kind. A missing token is produced by the parser when an expected token is not found. A missing token has no text and normally has associated diagnostics.

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

Parameters

kind
SyntaxKind

A syntax kind value for a token. These have the suffix Token or Keyword.

Returns

Applies to

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

Creates a missing token corresponding to syntax kind. A missing token is produced by the parser when an expected token is not found. A missing token has no text and normally has associated diagnostics.

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

Parameters

leading
SyntaxTriviaList

A list of trivia immediately preceding the token.

kind
SyntaxKind

A syntax kind value for a token. These have the suffix Token or Keyword.

trailing
SyntaxTriviaList

A list of trivia immediately following the token.

Returns

Applies to