nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Runtime / CodeToken

CodeToken

Full name Microsoft.VisualBasic.Scripting.TokenIcer.CodeToken`1 Assembly Microsoft.VisualBasic.Runtime Members 10

a Token object class, This defines the Token object

00 Remarks

A Token object holds the token and token value.

Type Parameters
NameDescription
Tokens

应该是枚举类型

01 Syntax

Microsoft.VisualBasic.Scripting.TokenIcer.CodeToken`1

02 Methods

NameOverloadsSummary
op_Equality 1 token is target token type andalso token text is one of any in the given text items
SetLine 1
Trim 1
ToString 1
op_Inequality 1

03 Properties

NameOverloadsSummary
name 1 Token type
text 1 The text that makes up the token.
isNumeric 1 Returns a Boolean value indicating whether an expression can be evaluated as a number.
span 1
length 1

04 Members

method op_Equality #
op_Equality(CodeToken(Of `0), ValueTuple(Of `0, String()))

token is target token type andalso token text is one of any in the given text items

Parameters
NameTypeDescription
tokenCodeToken(Of `0)

-

elementValueTuple(Of `0, String())

-

property name #
name

Token type

property text #
text

The text that makes up the token.

property isNumeric #
isNumeric

Returns a Boolean value indicating whether an expression can be evaluated as a number.

property span #
span
property length #
length
method SetLine #
SetLine(Int32)
method Trim #
Trim(Char())
method ToString #
ToString()
method op_Inequality #
op_Inequality(CodeToken(Of Tokens), ValueTuple(Of Tokens, String()))