JSToken Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the individual units of code, or tokens, that make up the JScript language.
This API supports the product infrastructure and is not intended to be used directly from your code.
public enum class JSToken
public enum JSToken
type JSToken =
Public Enum JSToken
- Inheritance
Fields
Name | Value | Description |
---|---|---|
None | -1 | No token. For example, before scanning any tokens, or in error situations. |
EndOfFile | 0 | The end of the file being scanned or parsed. This is the default value. |
If | 1 | The |
For | 2 | The |
Do | 3 | The |
While | 4 | The |
Continue | 5 | The |
Break | 6 | The |
Return | 7 | The |
Import | 8 | The |
With | 9 | The |
Switch | 10 | The |
Throw | 11 | The |
Try | 12 | The |
Package | 13 | The |
Internal | 14 | The |
Abstract | 15 | The |
Public | 16 | The |
Static | 17 | The |
Private | 18 | The |
Protected | 19 | The |
Final | 20 | The |
Event | 21 | The |
Var | 22 | The |
Const | 23 | The |
Class | 24 | The |
Function | 25 | The |
LeftCurly | 26 | The |
Semicolon | 27 | The |
Null | 28 | The |
True | 29 | The |
False | 30 | The |
This | 31 | The |
Identifier | 32 | An identifier. |
StringLiteral | 33 | A numeric literal. |
IntegerLiteral | 34 | An integer literal. |
NumericLiteral | 35 | A numeric literal. |
LeftParen | 36 | The |
LeftBracket | 37 | The |
AccessField | 38 | The |
FirstOp | 39 | A placeholder enumeration member that enables comparisons such as |
LogicalNot | 39 | The |
BitwiseNot | 40 | The |
Delete | 41 | The |
Void | 42 | The |
Typeof | 43 | The |
Increment | 44 | The |
Decrement | 45 | The |
FirstBinaryOp | 46 | A placeholder enumeration member that enables comparisons such as |
Plus | 46 | The |
Minus | 47 | The |
LogicalOr | 48 | The |
LogicalAnd | 49 | The |
BitwiseOr | 50 | The |
BitwiseXor | 51 | The |
BitwiseAnd | 52 | The |
Equal | 53 | The |
NotEqual | 54 | The |
StrictEqual | 55 | The |
StrictNotEqual | 56 | The |
GreaterThan | 57 | The |
LessThan | 58 | The |
LessThanEqual | 59 | The |
GreaterThanEqual | 60 | The |
LeftShift | 61 | The |
RightShift | 62 | The |
UnsignedRightShift | 63 | The |
Multiply | 64 | The |
Divide | 65 | The |
LastPPOperator | 66 | A placeholder enumeration member that enables comparisons such as |
Modulo | 66 | The |
Instanceof | 67 | The |
In | 68 | The |
Assign | 69 | The |
PlusAssign | 70 | The |
MinusAssign | 71 | The |
MultiplyAssign | 72 | The |
DivideAssign | 73 | The |
BitwiseAndAssign | 74 | The |
BitwiseOrAssign | 75 | The |
BitwiseXorAssign | 76 | The |
ModuloAssign | 77 | The |
LeftShiftAssign | 78 | The |
RightShiftAssign | 79 | The |
LastAssign | 80 | A placeholder enumeration member that enables comparisons such as |
LastBinaryOp | 80 | A placeholder enumeration member that enables comparisons such as |
UnsignedRightShiftAssign | 80 | The |
ConditionalIf | 81 | The |
Colon | 82 | The |
Comma | 83 | The |
LastOp | 83 | A placeholder enumeration member that enables comparisons such as |
Case | 84 | The |
Catch | 85 | The |
Debugger | 86 | The |
Default | 87 | The |
Else | 88 | The |
Export | 89 | The |
Extends | 90 | The |
Finally | 91 | The |
Get | 92 | The |
Implements | 93 | The |
Interface | 94 | The |
New | 95 | The |
Set | 96 | The |
Super | 97 | The |
RightParen | 98 | The |
RightCurly | 99 | The |
RightBracket | 100 | The |
PreProcessorConstant | 101 | A preprocessor constant. |
Comment | 102 | Comment text. |
UnterminatedComment | 103 | An un-terminated comment. |
Assert | 104 | The |
Boolean | 105 | The |
Byte | 106 | The |
Char | 107 | The |
Decimal | 108 | The |
Double | 109 | The |
DoubleColon | 110 | The |
Enum | 111 | The |
Ensure | 112 | The |
Float | 113 | The |
Goto | 114 | The |
Int | 115 | The |
Invariant | 116 | The |
Long | 117 | The |
Namespace | 118 | The |
Native | 119 | The |
Require | 120 | The |
Sbyte | 121 | The |
Short | 122 | The |
Synchronized | 123 | The |
Transient | 124 | The |
Throws | 125 | The |
ParamArray | 126 | The |
Volatile | 127 | The |
Ushort | 128 | The |
Uint | 129 | The |
Ulong | 130 | The |
Use | 131 | The |
EndOfLine | 132 | The end of the line being parsed. |
PreProcessDirective | 133 | A preprocessor directive. |
Remarks
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.