SyntaxFactory.Literal Method

Definition

Overloads

Literal(String, UInt32)

Creates a token with kind IntegerLiteralToken from the text and corresponding 4-byte unsigned integer value.

Literal(String, UInt64)

Creates a token with kind IntegerLiteralToken from the text and corresponding 8-byte unsigned integer value.

Literal(SyntaxTriviaList, String, Char, SyntaxTriviaList)

Creates a token with kind CharacterLiteralToken from the text and corresponding character value.

Literal(SyntaxTriviaList, String, Decimal, SyntaxTriviaList)

Creates a token with kind DecimalLiteralToken from the text and corresponding decimal value.

Literal(SyntaxTriviaList, String, Double, SyntaxTriviaList)

Creates a token with kind FloatingLiteralToken from the text and corresponding 8-byte floating point value.

Literal(String, String)

Creates a token with kind StringLiteralToken from the text and corresponding string value.

Literal(SyntaxTriviaList, String, Int64, SyntaxTriviaList)

Creates a token with kind IntegerLiteralToken from the text and corresponding 8-byte signed integer value.

Literal(SyntaxTriviaList, String, Single, SyntaxTriviaList)

Creates a token with kind FloatingLiteralToken from the text and corresponding 4-byte floating point value.

Literal(SyntaxTriviaList, String, String, SyntaxTriviaList)

Creates a token with kind StringLiteralToken from the text and corresponding string value.

Literal(SyntaxTriviaList, String, UInt32, SyntaxTriviaList)

Creates a token with kind IntegerLiteralToken from the text and corresponding 4-byte unsigned integer value.

Literal(SyntaxTriviaList, String, UInt64, SyntaxTriviaList)

Creates a token with kind IntegerLiteralToken from the text and corresponding 8-byte unsigned integer value.

Literal(SyntaxTriviaList, String, Int32, SyntaxTriviaList)

Creates a token with kind IntegerLiteralToken from the text and corresponding 4-byte signed integer value.

Literal(String, Single)

Creates a token with kind FloatingLiteralToken from the text and corresponding 4-byte floating point value.

Literal(String)

Creates a token with kind StringLiteralToken from a string value.

Literal(String, Int32)

Creates a token with kind IntegerLiteralToken from the text and corresponding 4-byte signed integer value.

Literal(Char)

Creates a token with kind CharacterLiteralToken from a character value.

Literal(Decimal)

Creates a token with kind DecimalLiteralToken from a decimal value.

Literal(Double)

Creates a token with kind FloatingLiteralToken from an 8-byte floating point value.

Literal(Int32)

Creates a token with kind IntegerLiteralToken from a 4-byte signed integer value.

Literal(Int64)

Creates a token with kind IntegerLiteralToken from an 8-byte signed integer value.

Literal(Single)

Creates a token with kind FloatingLiteralToken from a 4-byte floating point value.

Literal(String, Int64)

Creates a token with kind IntegerLiteralToken from the text and corresponding 8-byte signed integer value.

Literal(UInt32)

Creates a token with kind IntegerLiteralToken from a 4-byte unsigned integer value.

Literal(UInt64)

Creates a token with kind IntegerLiteralToken from an 8-byte unsigned integer value.

Literal(String, Char)

Creates a token with kind CharacterLiteralToken from the text and corresponding character value.

Literal(String, Decimal)

Creates a token with kind DecimalLiteralToken from the text and corresponding decimal value.

Literal(String, Double)

Creates a token with kind FloatingLiteralToken from the text and corresponding 8-byte floating point value.

Literal(String, UInt32)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind IntegerLiteralToken from the text and corresponding 4-byte unsigned integer value.

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::String ^ text, System::UInt32 value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (string text, uint value);
static member Literal : string * uint32 -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (text As String, value As UInteger) As SyntaxToken

Parameters

text
String

The raw text of the literal.

value
UInt32

The 4-byte unsigned integer value to be represented by the returned token.

Returns

Applies to

Literal(String, UInt64)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind IntegerLiteralToken from the text and corresponding 8-byte unsigned integer value.

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::String ^ text, System::UInt64 value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (string text, ulong value);
static member Literal : string * uint64 -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (text As String, value As ULong) As SyntaxToken

Parameters

text
String

The raw text of the literal.

value
UInt64

The 8-byte unsigned integer value to be represented by the returned token.

Returns

Applies to

Literal(SyntaxTriviaList, String, Char, SyntaxTriviaList)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind CharacterLiteralToken from the text and corresponding character value.

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

Parameters

leading
SyntaxTriviaList

A list of trivia immediately preceding the token.

text
String

The raw text of the literal, including quotes and escape sequences.

value
Char

The character value to be represented by the returned token.

trailing
SyntaxTriviaList

A list of trivia immediately following the token.

Returns

Applies to

Literal(SyntaxTriviaList, String, Decimal, SyntaxTriviaList)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind DecimalLiteralToken from the text and corresponding decimal value.

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

Parameters

leading
SyntaxTriviaList

A list of trivia immediately preceding the token.

text
String

The raw text of the literal.

value
Decimal

The decimal value to be represented by the returned token.

trailing
SyntaxTriviaList

A list of trivia immediately following the token.

Returns

Applies to

Literal(SyntaxTriviaList, String, Double, SyntaxTriviaList)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind FloatingLiteralToken from the text and corresponding 8-byte floating point value.

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

Parameters

leading
SyntaxTriviaList

A list of trivia immediately preceding the token.

text
String

The raw text of the literal.

value
Double

The 8-byte floating point value to be represented by the returned token.

trailing
SyntaxTriviaList

A list of trivia immediately following the token.

Returns

Applies to

Literal(String, String)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind StringLiteralToken from the text and corresponding string value.

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

Parameters

text
String

The raw text of the literal, including quotes and escape sequences.

value
String

The string value to be represented by the returned token.

Returns

Applies to

Literal(SyntaxTriviaList, String, Int64, SyntaxTriviaList)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind IntegerLiteralToken from the text and corresponding 8-byte signed integer value.

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

Parameters

leading
SyntaxTriviaList

A list of trivia immediately preceding the token.

text
String

The raw text of the literal.

value
Int64

The 8-byte signed integer value to be represented by the returned token.

trailing
SyntaxTriviaList

A list of trivia immediately following the token.

Returns

Applies to

Literal(SyntaxTriviaList, String, Single, SyntaxTriviaList)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind FloatingLiteralToken from the text and corresponding 4-byte floating point value.

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

Parameters

leading
SyntaxTriviaList

A list of trivia immediately preceding the token.

text
String

The raw text of the literal.

value
Single

The 4-byte floating point value to be represented by the returned token.

trailing
SyntaxTriviaList

A list of trivia immediately following the token.

Returns

Applies to

Literal(SyntaxTriviaList, String, String, SyntaxTriviaList)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind StringLiteralToken from the text and corresponding string value.

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(Microsoft::CodeAnalysis::SyntaxTriviaList leading, System::String ^ text, System::String ^ value, Microsoft::CodeAnalysis::SyntaxTriviaList trailing);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (Microsoft.CodeAnalysis.SyntaxTriviaList leading, string text, string value, Microsoft.CodeAnalysis.SyntaxTriviaList trailing);
static member Literal : Microsoft.CodeAnalysis.SyntaxTriviaList * string * string * Microsoft.CodeAnalysis.SyntaxTriviaList -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (leading As SyntaxTriviaList, text As String, value 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 literal, including quotes and escape sequences.

value
String

The string value to be represented by the returned token.

trailing
SyntaxTriviaList

A list of trivia immediately following the token.

Returns

Applies to

Literal(SyntaxTriviaList, String, UInt32, SyntaxTriviaList)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind IntegerLiteralToken from the text and corresponding 4-byte unsigned integer value.

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(Microsoft::CodeAnalysis::SyntaxTriviaList leading, System::String ^ text, System::UInt32 value, Microsoft::CodeAnalysis::SyntaxTriviaList trailing);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (Microsoft.CodeAnalysis.SyntaxTriviaList leading, string text, uint value, Microsoft.CodeAnalysis.SyntaxTriviaList trailing);
static member Literal : Microsoft.CodeAnalysis.SyntaxTriviaList * string * uint32 * Microsoft.CodeAnalysis.SyntaxTriviaList -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (leading As SyntaxTriviaList, text As String, value As UInteger, trailing As SyntaxTriviaList) As SyntaxToken

Parameters

leading
SyntaxTriviaList

A list of trivia immediately preceding the token.

text
String

The raw text of the literal.

value
UInt32

The 4-byte unsigned integer value to be represented by the returned token.

trailing
SyntaxTriviaList

A list of trivia immediately following the token.

Returns

Applies to

Literal(SyntaxTriviaList, String, UInt64, SyntaxTriviaList)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind IntegerLiteralToken from the text and corresponding 8-byte unsigned integer value.

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(Microsoft::CodeAnalysis::SyntaxTriviaList leading, System::String ^ text, System::UInt64 value, Microsoft::CodeAnalysis::SyntaxTriviaList trailing);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (Microsoft.CodeAnalysis.SyntaxTriviaList leading, string text, ulong value, Microsoft.CodeAnalysis.SyntaxTriviaList trailing);
static member Literal : Microsoft.CodeAnalysis.SyntaxTriviaList * string * uint64 * Microsoft.CodeAnalysis.SyntaxTriviaList -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (leading As SyntaxTriviaList, text As String, value As ULong, trailing As SyntaxTriviaList) As SyntaxToken

Parameters

leading
SyntaxTriviaList

A list of trivia immediately preceding the token.

text
String

The raw text of the literal.

value
UInt64

The 8-byte unsigned integer value to be represented by the returned token.

trailing
SyntaxTriviaList

A list of trivia immediately following the token.

Returns

Applies to

Literal(SyntaxTriviaList, String, Int32, SyntaxTriviaList)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind IntegerLiteralToken from the text and corresponding 4-byte signed integer value.

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

Parameters

leading
SyntaxTriviaList

A list of trivia immediately preceding the token.

text
String

The raw text of the literal.

value
Int32

The 4-byte signed integer value to be represented by the returned token.

trailing
SyntaxTriviaList

A list of trivia immediately following the token.

Returns

Applies to

Literal(String, Single)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind FloatingLiteralToken from the text and corresponding 4-byte floating point value.

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::String ^ text, float value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (string text, float value);
static member Literal : string * single -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (text As String, value As Single) As SyntaxToken

Parameters

text
String

The raw text of the literal.

value
Single

The 4-byte floating point value to be represented by the returned token.

Returns

Applies to

Literal(String)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind StringLiteralToken from a string value.

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

Parameters

value
String

The string value to be represented by the returned token.

Returns

Applies to

Literal(String, Int32)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind IntegerLiteralToken from the text and corresponding 4-byte signed integer value.

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::String ^ text, int value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (string text, int value);
static member Literal : string * int -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (text As String, value As Integer) As SyntaxToken

Parameters

text
String

The raw text of the literal.

value
Int32

The 4-byte signed integer value to be represented by the returned token.

Returns

Applies to

Literal(Char)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind CharacterLiteralToken from a character value.

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(char value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (char value);
static member Literal : char -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (value As Char) As SyntaxToken

Parameters

value
Char

The character value to be represented by the returned token.

Returns

Applies to

Literal(Decimal)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind DecimalLiteralToken from a decimal value.

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::Decimal value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (decimal value);
static member Literal : decimal -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (value As Decimal) As SyntaxToken

Parameters

value
Decimal

The decimal value to be represented by the returned token.

Returns

Applies to

Literal(Double)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind FloatingLiteralToken from an 8-byte floating point value.

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(double value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (double value);
static member Literal : double -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (value As Double) As SyntaxToken

Parameters

value
Double

The 8-byte floating point value to be represented by the returned token.

Returns

Applies to

Literal(Int32)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind IntegerLiteralToken from a 4-byte signed integer value.

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(int value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (int value);
static member Literal : int -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (value As Integer) As SyntaxToken

Parameters

value
Int32

The 4-byte signed integer value to be represented by the returned token.

Returns

Applies to

Literal(Int64)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind IntegerLiteralToken from an 8-byte signed integer value.

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(long value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (long value);
static member Literal : int64 -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (value As Long) As SyntaxToken

Parameters

value
Int64

The 8-byte signed integer value to be represented by the returned token.

Returns

Applies to

Literal(Single)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind FloatingLiteralToken from a 4-byte floating point value.

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(float value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (float value);
static member Literal : single -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (value As Single) As SyntaxToken

Parameters

value
Single

The 4-byte floating point value to be represented by the returned token.

Returns

Applies to

Literal(String, Int64)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind IntegerLiteralToken from the text and corresponding 8-byte signed integer value.

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::String ^ text, long value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (string text, long value);
static member Literal : string * int64 -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (text As String, value As Long) As SyntaxToken

Parameters

text
String

The raw text of the literal.

value
Int64

The 8-byte signed integer value to be represented by the returned token.

Returns

Applies to

Literal(UInt32)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind IntegerLiteralToken from a 4-byte unsigned integer value.

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::UInt32 value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (uint value);
static member Literal : uint32 -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (value As UInteger) As SyntaxToken

Parameters

value
UInt32

The 4-byte unsigned integer value to be represented by the returned token.

Returns

Applies to

Literal(UInt64)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind IntegerLiteralToken from an 8-byte unsigned integer value.

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::UInt64 value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (ulong value);
static member Literal : uint64 -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (value As ULong) As SyntaxToken

Parameters

value
UInt64

The 8-byte unsigned integer value to be represented by the returned token.

Returns

Applies to

Literal(String, Char)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind CharacterLiteralToken from the text and corresponding character value.

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::String ^ text, char value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (string text, char value);
static member Literal : string * char -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (text As String, value As Char) As SyntaxToken

Parameters

text
String

The raw text of the literal, including quotes and escape sequences.

value
Char

The character value to be represented by the returned token.

Returns

Applies to

Literal(String, Decimal)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind DecimalLiteralToken from the text and corresponding decimal value.

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::String ^ text, System::Decimal value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (string text, decimal value);
static member Literal : string * decimal -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (text As String, value As Decimal) As SyntaxToken

Parameters

text
String

The raw text of the literal.

value
Decimal

The decimal value to be represented by the returned token.

Returns

Applies to

Literal(String, Double)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

Creates a token with kind FloatingLiteralToken from the text and corresponding 8-byte floating point value.

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::String ^ text, double value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (string text, double value);
static member Literal : string * double -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (text As String, value As Double) As SyntaxToken

Parameters

text
String

The raw text of the literal.

value
Double

The 8-byte floating point value to be represented by the returned token.

Returns

Applies to