SyntaxFactory.Literal 方法

定义

重载

Literal(String, UInt64)

从文本和相应的 8 字节无符号整数值创建类型为 NumericLiteralToken 的标记。

Literal(SyntaxTriviaList, String, Char, SyntaxTriviaList)

从文本和相应的字符值创建类型为 CharacterLiteralToken 的标记。

Literal(String, String)

从文本和相应的字符串值创建类型为 StringLiteralToken 的标记。

Literal(String, UInt32)

从文本和相应的 4 字节无符号整数值创建类型为 NumericLiteralToken 的标记。

Literal(SyntaxTriviaList, String, Decimal, SyntaxTriviaList)

从文本和相应的十进制值创建类型为 NumericLiteralToken 的标记。

Literal(String, Single)

从文本和相应的 4 字节浮点值创建类型为 NumericLiteralToken 的标记。

Literal(SyntaxTriviaList, String, Int32, SyntaxTriviaList)

从文本和相应的 4 字节带符号整数值创建类型为 NumericLiteralToken 的标记。

Literal(SyntaxTriviaList, String, Int64, SyntaxTriviaList)

从文本创建类型为 NumericLiteralToken 的标记,以及相应的 8 字节带符号整数值。

Literal(SyntaxTriviaList, String, Single, SyntaxTriviaList)

从文本和相应的 4 字节浮点值创建类型为 NumericLiteralToken 的标记。

Literal(SyntaxTriviaList, String, String, SyntaxTriviaList)

从文本和相应的字符串值创建类型为 StringLiteralToken 的标记。

Literal(SyntaxTriviaList, String, UInt64, SyntaxTriviaList)

从文本和相应的 8 字节无符号整数值创建类型为 NumericLiteralToken 的标记。

Literal(SyntaxTriviaList, String, Double, SyntaxTriviaList)

从文本和相应的 8 字节浮点值创建类型为 NumericLiteralToken 的标记。

Literal(String, Int64)

从文本创建类型为 NumericLiteralToken 的标记,以及相应的 8 字节带符号整数值。

Literal(SyntaxTriviaList, String, UInt32, SyntaxTriviaList)

从文本和相应的 4 字节无符号整数值创建类型为 NumericLiteralToken 的标记。

Literal(String, Double)

从文本和相应的 8 字节浮点值创建类型为 NumericLiteralToken 的标记。

Literal(String, Int32)

从文本和相应的 4 字节带符号整数值创建类型为 NumericLiteralToken 的标记。

Literal(Decimal)

从十进制值创建类型为 NumericLiteralToken 的标记。

Literal(Double)

从 8 字节浮点值创建类型为 NumericLiteralToken 的令牌。

Literal(Int32)

从 4 字节有符号整数值创建类型为 NumericLiteralToken 的标记。

Literal(Int64)

从 8 字节有符号整数值创建类型为 NumericLiteralToken 的标记。

Literal(Char)

从字符值创建类型为 CharacterLiteralToken 的标记。

Literal(String)

从字符串值创建类型为 StringLiteralToken 的标记。

Literal(UInt32)

从 4 字节无符号整数值创建类型为 NumericLiteralToken 的标记。

Literal(UInt64)

从 8 字节无符号整数值创建类型为 NumericLiteralToken 的标记。

Literal(String, Char)

从文本和相应的字符值创建类型为 CharacterLiteralToken 的标记。

Literal(String, Decimal)

从文本和相应的十进制值创建类型为 NumericLiteralToken 的标记。

Literal(Single)

从 4 字节浮点值创建类型为 NumericLiteralToken 的标记。

Literal(String, UInt64)

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

从文本和相应的 8 字节无符号整数值创建类型为 NumericLiteralToken 的标记。

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

参数

text
String

文本的原始文本。

value
UInt64

要由返回的标记表示的 8 字节无符号整数值。

返回

适用于

Literal(SyntaxTriviaList, String, Char, 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

从文本和相应的字符值创建类型为 CharacterLiteralToken 的标记。

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

参数

leading
SyntaxTriviaList

紧挨着令牌前面的琐事列表。

text
String

文本的原始文本,包括引号和转义序列。

value
Char

要由返回的标记表示的字符值。

trailing
SyntaxTriviaList

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

返回

适用于

Literal(String, 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

从文本和相应的字符串值创建类型为 StringLiteralToken 的标记。

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

参数

text
String

文本的原始文本,包括引号和转义序列。

value
String

要由返回的标记表示的字符串值。

返回

适用于

Literal(String, UInt32)

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

从文本和相应的 4 字节无符号整数值创建类型为 NumericLiteralToken 的标记。

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

参数

text
String

文本的原始文本。

value
UInt32

要由返回的标记表示的 4 字节无符号整数值。

返回

适用于

Literal(SyntaxTriviaList, String, Decimal, 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

从文本和相应的十进制值创建类型为 NumericLiteralToken 的标记。

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

参数

leading
SyntaxTriviaList

紧挨着令牌前面的琐事列表。

text
String

文本的原始文本。

value
Decimal

要由返回的标记表示的十进制值。

trailing
SyntaxTriviaList

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

返回

适用于

Literal(String, Single)

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

从文本和相应的 4 字节浮点值创建类型为 NumericLiteralToken 的标记。

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

参数

text
String

文本的原始文本。

value
Single

要由返回的标记表示的 4 字节浮点值。

返回

适用于

Literal(SyntaxTriviaList, String, Int32, 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

从文本和相应的 4 字节带符号整数值创建类型为 NumericLiteralToken 的标记。

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

参数

leading
SyntaxTriviaList

紧挨着令牌前面的琐事列表。

text
String

文本的原始文本。

value
Int32

要由返回的标记表示的 4 字节有符号整数值。

trailing
SyntaxTriviaList

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

返回

适用于

Literal(SyntaxTriviaList, String, Int64, 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

从文本创建类型为 NumericLiteralToken 的标记,以及相应的 8 字节带符号整数值。

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

参数

leading
SyntaxTriviaList

紧挨着令牌前面的琐事列表。

text
String

文本的原始文本。

value
Int64

要由返回的标记表示的 8 字节带符号整数值。

trailing
SyntaxTriviaList

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

返回

适用于

Literal(SyntaxTriviaList, String, Single, 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

从文本和相应的 4 字节浮点值创建类型为 NumericLiteralToken 的标记。

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

参数

leading
SyntaxTriviaList

紧挨着令牌前面的琐事列表。

text
String

文本的原始文本。

value
Single

要由返回的标记表示的 4 字节浮点值。

trailing
SyntaxTriviaList

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

返回

适用于

Literal(SyntaxTriviaList, 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

从文本和相应的字符串值创建类型为 StringLiteralToken 的标记。

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

参数

leading
SyntaxTriviaList

紧挨着令牌前面的琐事列表。

text
String

文本的原始文本,包括引号和转义序列。

value
String

要由返回的标记表示的字符串值。

trailing
SyntaxTriviaList

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

返回

适用于

Literal(SyntaxTriviaList, String, UInt64, 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

从文本和相应的 8 字节无符号整数值创建类型 NumericLiteralToken 的标记。

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

参数

leading
SyntaxTriviaList

紧挨着令牌前面的琐事列表。

text
String

文本的原始文本。

value
UInt64

要由返回的标记表示的 8 字节无符号整数值。

trailing
SyntaxTriviaList

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

返回

适用于

Literal(SyntaxTriviaList, String, Double, 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

从文本和相应的 8 字节浮点值创建类型 NumericLiteralToken 的标记。

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

参数

leading
SyntaxTriviaList

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

text
String

文本的原始文本。

value
Double

要由返回的标记表示的 8 字节浮点值。

trailing
SyntaxTriviaList

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

返回

适用于

Literal(String, Int64)

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

从文本和相应的 8 字节带符号整数值创建类型 NumericLiteralToken 的标记。

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

参数

text
String

文本的原始文本。

value
Int64

要由返回的标记表示的 8 字节有符号整数值。

返回

适用于

Literal(SyntaxTriviaList, String, UInt32, 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

从文本和相应的 4 字节无符号整数值创建类型 NumericLiteralToken 的标记。

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

参数

leading
SyntaxTriviaList

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

text
String

文本的原始文本。

value
UInt32

要由返回的标记表示的 4 字节无符号整数值。

trailing
SyntaxTriviaList

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

返回

适用于

Literal(String, Double)

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

从文本和相应的 8 字节浮点值创建类型 NumericLiteralToken 的标记。

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

参数

text
String

文本的原始文本。

value
Double

要由返回的标记表示的 8 字节浮点值。

返回

适用于

Literal(String, Int32)

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

从文本和相应的 4 字节带符号整数值创建类型 NumericLiteralToken 的标记。

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

参数

text
String

文本的原始文本。

value
Int32

要由返回的标记表示的 4 字节有符号整数值。

返回

适用于

Literal(Decimal)

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

从十进制值创建类型为 NumericLiteralToken 的标记。

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

参数

value
Decimal

要由返回的令牌表示的十进制值。

返回

适用于

Literal(Double)

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

从 8 字节浮点值创建类型为 NumericLiteralToken 的标记。

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

参数

value
Double

要由返回的标记表示的 8 字节浮点值。

返回

适用于

Literal(Int32)

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

从 4 字节有符号整数值创建类型为 NumericLiteralToken 的标记。

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

参数

value
Int32

要由返回的标记表示的 4 字节有符号整数值。

返回

适用于

Literal(Int64)

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

从 8 字节有符号整数值创建类型为 NumericLiteralToken 的标记。

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

参数

value
Int64

要由返回的标记表示的 8 字节有符号整数值。

返回

适用于

Literal(Char)

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

从字符值创建具有类型 CharacterLiteralToken 的标记。

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

参数

value
Char

要由返回的标记表示的字符值。

返回

适用于

Literal(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

从字符串值创建类型为 StringLiteralToken 的令牌。

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

参数

value
String

要由返回的令牌表示的字符串值。

返回

适用于

Literal(UInt32)

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

从 4 字节无符号整数值创建类型为 NumericLiteralToken 的标记。

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

参数

value
UInt32

要由返回的标记表示的 4 字节无符号整数值。

返回

适用于

Literal(UInt64)

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

从 8 字节无符号整数值创建类型为 NumericLiteralToken 的标记。

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

参数

value
UInt64

要由返回的标记表示的 8 字节无符号整数值。

返回

适用于

Literal(String, Char)

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

从文本和相应的字符值创建一个类型为 CharacterLiteralToken 的标记。

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

参数

text
String

文本的原始文本,包括引号和转义序列。

value
Char

要由返回的标记表示的字符值。

返回

适用于

Literal(String, Decimal)

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

从文本和相应的十进制值创建类型为 NumericLiteralToken 的标记。

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

参数

text
String

文本的原始文本。

value
Decimal

要由返回的令牌表示的十进制值。

返回

适用于

Literal(Single)

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

从 4 字节浮点值创建类型为 NumericLiteralToken 的标记。

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

参数

value
Single

要由返回的令牌表示的 4 字节浮点值。

返回

适用于