Export (0) Print
Expand All
Expand Minimize

JSToken Enumeration

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Specifies the individual units of code, or tokens, that make up the JScript language.

Namespace:  Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)

public enum JSToken

Member nameDescription
AbstractThe abstract modifier.
AccessFieldThe . field accessor symbol.
AssertThe assert reserved word.
AssignThe = assignment operator.
BitwiseAndThe & bitwise AND operator.
BitwiseAndAssignThe &= bitwise AND assignment operator.
BitwiseNotThe ~ bitwise NOT operator.
BitwiseOrThe | bitwise OR operator.
BitwiseOrAssignThe |= bitwise OR assignment operator.
BitwiseXorThe ^ bitwise XOR operator.
BitwiseXorAssignThe ^= bitwise XOR assignment operator.
BooleanThe boolean data type.
BreakThe break statement.
ByteThe byte data type.
CaseThe case keyword of a switch statement.
CatchThe catch keyword of a try statement.
CharThe char data type.
ClassThe class statement.
ColonThe : ternary operator.
CommaThe , comma operator.
CommentComment text.
ConditionalIfThe ? ternary operator.
ConstThe const statement.
ContinueThe continue statement.
DebuggerThe debugger statement.
DecimalThe decimal data type.
DecrementThe -- decrement operator.
DefaultThe default keyword of a switch statement.
DeleteThe delete operator.
DivideThe / division operator.
DivideAssignThe /= division assignment operator.
DoThe do statement.
DoubleThe double data type.
DoubleColonThe :: reserved word.
ElseThe else keyword of an if statement.
EndOfFileThe end of the file being scanned or parsed. This is the default value.
EndOfLineThe end of the line being parsed.
EnsureThe ensure reserved word.
EnumThe enum statement.
EqualThe == equality comparison operator.
EventThe event reserved word.
ExportThe export reserved word.
ExtendsThe extends keyword of a class statement.
FalseThe false literal.
FinalThe final modifier.
FinallyThe finally keyword of a try statement.
FirstBinaryOpA placeholder enumeration member that enables comparisons such as if JSToken.FirstBinaryOp <= token && token <= JSToken.LastBinaryOp then...
FirstOpA placeholder enumeration member that enables comparisons such as if JSToken.FirstOp <= token && token <= JSToken.LastOp then...
FloatThe float data type.
ForThe for statement.
FunctionThe function statement.
GetThe get keyword of a function get statement.
GotoThe goto reserved word.
GreaterThanThe > relational comparison operator.
GreaterThanEqualThe >= relational comparison operator.
IdentifierAn identifier.
IfThe if statement.
ImplementsThe implements keyword of a class or interface statement.
ImportThe import statement.
InThe in operator.
IncrementThe ++ increment operator.
InstanceofThe instanceof operator.
IntThe int data type.
IntegerLiteralAn integer literal.
InterfaceThe interface statement.
InternalThe internal modifier.
InvariantThe invariant reserved word.
LastAssignA placeholder enumeration member that enables comparisons such as if JSToken.Assign <= token && token <= JSToken.LastAssign then...
LastBinaryOpA placeholder enumeration member that enables comparisons such as if JSToken.FirstBinaryOp <= token && token <= JSToken.LastBinaryOp then...
LastOpA placeholder enumeration member that enables comparisons such as if JSToken.FirstBinaryOp <= token && token <= JSToken.LastOp then...
LastPPOperatorA placeholder enumeration member that enables comparisons such as if JSToken.FirstBinaryOp <= token && token <= JSToken.LastPPOperator then... PPOperators are operations that can be pre-processed.
LeftBracketThe [ symbol.
LeftCurlyThe { symbol.
LeftParenThe ( symbol.
LeftShiftThe << bitwise left shift operator.
LeftShiftAssignThe <<= left shift assignment operator.
LessThanThe < relational comparison operator.
LessThanEqualThe <= relational comparison operator.
LogicalAndThe && logical AND operator.
LogicalNotThe ! logical NOT operator.
LogicalOrThe || logical OR operator.
LongThe long data type.
MinusThe - subtraction operator.
MinusAssignThe -= subtraction assignment operator.
ModuloThe % modulus operator.
ModuloAssignThe %= modulus assignment operator.
MultiplyThe * multiplication operator.
MultiplyAssignThe *= multiplication assignment operator.
NamespaceThe namespace reserved word.
NativeThe native reserved word.
NewThe new operator.
NoneNo token. For example, before scanning any tokens, or in error situations.
NotEqualThe != inequality comparison operator.
NullThe null literal.
NumericLiteralA numeric literal.
PackageThe package statement.
ParamArrayThe ... reserved word.
PlusThe + addition operator.
PlusAssignThe += addition assignment operator.
PreProcessDirectiveA preprocessor directive.
PreProcessorConstantA preprocessor constant.
PrivateThe private modifier.
ProtectedThe protected modifier.
PublicThe public modifier.
RequireThe require reserved word.
ReturnThe return statement.
RightBracketThe ] symbol.
RightCurlyThe } symbol.
RightParenThe ) symbol.
RightShiftThe >> bitwise right shift operator.
RightShiftAssignThe >>= right shift assignment operator.
SbyteThe sbyte data type.
SemicolonThe ; symbol.
SetThe set keyword of a function set statement.
ShortThe short data type.
StaticThe static modifier.
StrictEqualThe === identity comparison operator.
StrictNotEqualThe !== identity comparison operator.
StringLiteralA numeric literal.
SuperThe super statement.
SwitchThe switch statement.
SynchronizedThe synchronized reserved word.
ThisThe this statement.
ThrowThe throw statement.
ThrowsThe throws reserved word.
TransientThe transient reserved word.
TrueThe true literal.
TryThe try statement.
TypeofThe typeof operator.
UintThe uint data type.
UlongThe ulong data type.
UnsignedRightShiftThe >>> unsigned right shift operator.
UnsignedRightShiftAssignThe >>>= unsigned right shift assignment operator.
UnterminatedCommentAn un-terminated comment.
UseThe use reserved word.
UshortThe ushort data type.
VarThe var statement.
VoidThe void operator.
VolatileThe volatile reserved word.
WhileThe while statement.
WithThe with statement.

The members of this enumeration are used by the scanner and the parser to read source code. The members of this enumeration are also used by operator classes to identify the operation to perform. For more information, see Create a Language Compiler for the .NET Framework.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft