This documentation is archived and is not being maintained.
JSToken Enumeration
Visual Studio 2010
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.
Assembly: Microsoft.JScript (in Microsoft.JScript.dll)
| Member name | Description | |
|---|---|---|
| None | No token. For example, before scanning any tokens, or in error situations. | |
| EndOfFile | The end of the file being scanned or parsed. This is the default value. | |
| If | The if statement. | |
| For | The for statement. | |
| Do | The do statement. | |
| While | The while statement. | |
| Continue | The continue statement. | |
| Break | The break statement. | |
| Return | The return statement. | |
| Import | The import statement. | |
| With | The with statement. | |
| Switch | The switch statement. | |
| Throw | The throw statement. | |
| Try | The try statement. | |
| Package | The package statement. | |
| Internal | The internal modifier. | |
| Abstract | The abstract modifier. | |
| Public | The public modifier. | |
| Static | The static modifier. | |
| Private | The private modifier. | |
| Protected | The protected modifier. | |
| Final | The final modifier. | |
| Event | The event reserved word. | |
| Var | The var statement. | |
| Const | The const statement. | |
| Class | The class statement. | |
| Function | The function statement. | |
| LeftCurly | The { symbol. | |
| Semicolon | The ; symbol. | |
| Null | The null literal. | |
| True | The true literal. | |
| False | The false literal. | |
| This | The this statement. | |
| Identifier | An identifier. | |
| StringLiteral | A numeric literal. | |
| IntegerLiteral | An integer literal. | |
| NumericLiteral | A numeric literal. | |
| LeftParen | The ( symbol. | |
| LeftBracket | The [ symbol. | |
| AccessField | The . field accessor symbol. | |
| FirstOp | A placeholder enumeration member that enables comparisons such as if JSToken.FirstOp <= token && token <= JSToken.LastOp then... | |
| LogicalNot | The ! logical NOT operator. | |
| BitwiseNot | The ~ bitwise NOT operator. | |
| Delete | The delete operator. | |
| Void | The void operator. | |
| Typeof | The typeof operator. | |
| Increment | The ++ increment operator. | |
| Decrement | The -- decrement operator. | |
| FirstBinaryOp | A placeholder enumeration member that enables comparisons such as if JSToken.FirstBinaryOp <= token && token <= JSToken.LastBinaryOp then... | |
| Plus | The + addition operator. | |
| Minus | The - subtraction operator. | |
| LogicalOr | The || logical OR operator. | |
| LogicalAnd | The && logical AND operator. | |
| BitwiseOr | The | bitwise OR operator. | |
| BitwiseXor | The ^ bitwise XOR operator. | |
| BitwiseAnd | The & bitwise AND operator. | |
| Equal | The == equality comparison operator. | |
| NotEqual | The != inequality comparison operator. | |
| StrictEqual | The === identity comparison operator. | |
| StrictNotEqual | The !== identity comparison operator. | |
| GreaterThan | The > relational comparison operator. | |
| LessThan | The < relational comparison operator. | |
| LessThanEqual | The <= relational comparison operator. | |
| GreaterThanEqual | The >= relational comparison operator. | |
| LeftShift | The << bitwise left shift operator. | |
| RightShift | The >> bitwise right shift operator. | |
| UnsignedRightShift | The >>> unsigned right shift operator. | |
| Multiply | The * multiplication operator. | |
| Divide | The / division operator. | |
| Modulo | The % modulus operator. | |
| LastPPOperator | A placeholder enumeration member that enables comparisons such as if JSToken.FirstBinaryOp <= token && token <= JSToken.LastPPOperator then... PPOperators are operations that can be pre-processed. | |
| Instanceof | The instanceof operator. | |
| In | The in operator. | |
| Assign | The = assignment operator. | |
| PlusAssign | The += addition assignment operator. | |
| MinusAssign | The -= subtraction assignment operator. | |
| MultiplyAssign | The *= multiplication assignment operator. | |
| DivideAssign | The /= division assignment operator. | |
| BitwiseAndAssign | The &= bitwise AND assignment operator. | |
| BitwiseOrAssign | The |= bitwise OR assignment operator. | |
| BitwiseXorAssign | The ^= bitwise XOR assignment operator. | |
| ModuloAssign | The %= modulus assignment operator. | |
| LeftShiftAssign | The <<= left shift assignment operator. | |
| RightShiftAssign | The >>= right shift assignment operator. | |
| UnsignedRightShiftAssign | The >>>= unsigned right shift assignment operator. | |
| LastAssign | A placeholder enumeration member that enables comparisons such as if JSToken.Assign <= token && token <= JSToken.LastAssign then... | |
| LastBinaryOp | A placeholder enumeration member that enables comparisons such as if JSToken.FirstBinaryOp <= token && token <= JSToken.LastBinaryOp then... | |
| ConditionalIf | The ? ternary operator. | |
| Colon | The : ternary operator. | |
| Comma | The , comma operator. | |
| LastOp | A placeholder enumeration member that enables comparisons such as if JSToken.FirstBinaryOp <= token && token <= JSToken.LastOp then... | |
| Case | The case keyword of a switch statement. | |
| Catch | The catch keyword of a try statement. | |
| Debugger | The debugger statement. | |
| Default | The default keyword of a switch statement. | |
| Else | The else keyword of an if statement. | |
| Export | The export reserved word. | |
| Extends | The extends keyword of a class statement. | |
| Finally | The finally keyword of a try statement. | |
| Get | The get keyword of a function get statement. | |
| Implements | The implements keyword of a class or interface statement. | |
| Interface | The interface statement. | |
| New | The new operator. | |
| Set | The set keyword of a function set statement. | |
| Super | The super statement. | |
| RightParen | The ) symbol. | |
| RightCurly | The } symbol. | |
| RightBracket | The ] symbol. | |
| PreProcessorConstant | A preprocessor constant. | |
| Comment | Comment text. | |
| UnterminatedComment | An un-terminated comment. | |
| Assert | The assert reserved word. | |
| Boolean | The boolean data type. | |
| Byte | The byte data type. | |
| Char | The char data type. | |
| Decimal | The decimal data type. | |
| Double | The double data type. | |
| DoubleColon | The :: reserved word. | |
| Enum | The enum statement. | |
| Ensure | The ensure reserved word. | |
| Float | The float data type. | |
| Goto | The goto reserved word. | |
| Int | The int data type. | |
| Invariant | The invariant reserved word. | |
| Long | The long data type. | |
| Namespace | The namespace reserved word. | |
| Native | The native reserved word. | |
| Require | The require reserved word. | |
| Sbyte | The sbyte data type. | |
| Short | The short data type. | |
| Synchronized | The synchronized reserved word. | |
| Transient | The transient reserved word. | |
| Throws | The throws reserved word. | |
| ParamArray | The ... reserved word. | |
| Volatile | The volatile reserved word. | |
| Ushort | The ushort data type. | |
| Uint | The uint data type. | |
| Ulong | The ulong data type. | |
| Use | The use reserved word. | |
| EndOfLine | The end of the line being parsed. | |
| PreProcessDirective | A preprocessor directive. |
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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: