Sdílet prostřednictvím


VisualBasicExtensions.GetTypeCharacter(SyntaxToken) Method

Definition

Returns the Type character for a given syntax token. This returns type character for Identifiers or Integer, Floating Point or Decimal Literals. Examples: Dim a$ or Dim l1 = 1L

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::TypeCharacter GetTypeCharacter(Microsoft::CodeAnalysis::SyntaxToken token);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeCharacter GetTypeCharacter (this Microsoft.CodeAnalysis.SyntaxToken token);
static member GetTypeCharacter : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeCharacter
<Extension()>
Public Function GetTypeCharacter (token As SyntaxToken) As TypeCharacter

Parameters

token
SyntaxToken

The source SyntaxToken.

Returns

A type character used for the specific Internal Syntax Token Types.

Applies to