Redigera

Dela via


JSToken Enum

Definition

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

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 if statement.

For 2

The for statement.

Do 3

The do statement.

While 4

The while statement.

Continue 5

The continue statement.

Break 6

The break statement.

Return 7

The return statement.

Import 8

The import statement.

With 9

The with statement.

Switch 10

The switch statement.

Throw 11

The throw statement.

Try 12

The try statement.

Package 13

The package statement.

Internal 14

The internal modifier.

Abstract 15

The abstract modifier.

Public 16

The public modifier.

Static 17

The static modifier.

Private 18

The private modifier.

Protected 19

The protected modifier.

Final 20

The final modifier.

Event 21

The event reserved word.

Var 22

The var statement.

Const 23

The const statement.

Class 24

The class statement.

Function 25

The function statement.

LeftCurly 26

The { symbol.

Semicolon 27

The ; symbol.

Null 28

The null literal.

True 29

The true literal.

False 30

The false literal.

This 31

The this statement.

Identifier 32

An identifier.

StringLiteral 33

A numeric literal.

IntegerLiteral 34

An integer literal.

NumericLiteral 35

A numeric literal.

LeftParen 36

The ( symbol.

LeftBracket 37

The [ symbol.

AccessField 38

The . field accessor symbol.

FirstOp 39

A placeholder enumeration member that enables comparisons such as if JSToken.FirstOp <= token && token <= JSToken.LastOp then....

LogicalNot 39

The ! logical NOT operator.

BitwiseNot 40

The ~ bitwise NOT operator.

Delete 41

The delete operator.

Void 42

The void operator.

Typeof 43

The typeof operator.

Increment 44

The ++ increment operator.

Decrement 45

The -- decrement operator.

FirstBinaryOp 46

A placeholder enumeration member that enables comparisons such as if JSToken.FirstBinaryOp <= token && token <= JSToken.LastBinaryOp then....

Plus 46

The + addition operator.

Minus 47

The - subtraction operator.

LogicalOr 48

The || logical OR operator.

LogicalAnd 49

The && logical AND operator.

BitwiseOr 50

The | bitwise OR operator.

BitwiseXor 51

The ^ bitwise XOR operator.

BitwiseAnd 52

The & bitwise AND operator.

Equal 53

The == equality comparison operator.

NotEqual 54

The != inequality comparison operator.

StrictEqual 55

The === identity comparison operator.

StrictNotEqual 56

The !== identity comparison operator.

GreaterThan 57

The > relational comparison operator.

LessThan 58

The < relational comparison operator.

LessThanEqual 59

The <= relational comparison operator.

GreaterThanEqual 60

The >= relational comparison operator.

LeftShift 61

The << bitwise left shift operator.

RightShift 62

The >> bitwise right shift operator.

UnsignedRightShift 63

The >>> unsigned right shift operator.

Multiply 64

The * multiplication operator.

Divide 65

The / division operator.

LastPPOperator 66

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.

Modulo 66

The % modulus operator.

Instanceof 67

The instanceof operator.

In 68

The in operator.

Assign 69

The = assignment operator.

PlusAssign 70

The += addition assignment operator.

MinusAssign 71

The -= subtraction assignment operator.

MultiplyAssign 72

The *= multiplication assignment operator.

DivideAssign 73

The /= division assignment operator.

BitwiseAndAssign 74

The &= bitwise AND assignment operator.

BitwiseOrAssign 75

The |= bitwise OR assignment operator.

BitwiseXorAssign 76

The ^= bitwise XOR assignment operator.

ModuloAssign 77

The %= modulus assignment operator.

LeftShiftAssign 78

The <<= left shift assignment operator.

RightShiftAssign 79

The >>= right shift assignment operator.

LastAssign 80

A placeholder enumeration member that enables comparisons such as if JSToken.Assign <= token && token <= JSToken.LastAssign then....

LastBinaryOp 80

A placeholder enumeration member that enables comparisons such as if JSToken.FirstBinaryOp <= token && token <= JSToken.LastBinaryOp then....

UnsignedRightShiftAssign 80

The >>>= unsigned right shift assignment operator.

ConditionalIf 81

The ? ternary operator.

Colon 82

The : ternary operator.

Comma 83

The , comma operator.

LastOp 83

A placeholder enumeration member that enables comparisons such as if JSToken.FirstBinaryOp <= token && token <= JSToken.LastOp then....

Case 84

The case keyword of a switch statement.

Catch 85

The catch keyword of a try statement.

Debugger 86

The debugger statement.

Default 87

The default keyword of a switch statement.

Else 88

The else keyword of an if statement.

Export 89

The export reserved word.

Extends 90

The extends keyword of a class statement.

Finally 91

The finally keyword of a try statement.

Get 92

The get keyword of a function get statement.

Implements 93

The implements keyword of a class or interface statement.

Interface 94

The interface statement.

New 95

The new operator.

Set 96

The set keyword of a function set statement.

Super 97

The super statement.

RightParen 98

The ) symbol.

RightCurly 99

The } symbol.

RightBracket 100

The ] symbol.

PreProcessorConstant 101

A preprocessor constant.

Comment 102

Comment text.

UnterminatedComment 103

An un-terminated comment.

Assert 104

The assert reserved word.

Boolean 105

The boolean data type.

Byte 106

The byte data type.

Char 107

The char data type.

Decimal 108

The decimal data type.

Double 109

The double data type.

DoubleColon 110

The :: reserved word.

Enum 111

The enum statement.

Ensure 112

The ensure reserved word.

Float 113

The float data type.

Goto 114

The goto reserved word.

Int 115

The int data type.

Invariant 116

The invariant reserved word.

Long 117

The long data type.

Namespace 118

The namespace reserved word.

Native 119

The native reserved word.

Require 120

The require reserved word.

Sbyte 121

The sbyte data type.

Short 122

The short data type.

Synchronized 123

The synchronized reserved word.

Transient 124

The transient reserved word.

Throws 125

The throws reserved word.

ParamArray 126

The ... reserved word.

Volatile 127

The volatile reserved word.

Ushort 128

The ushort data type.

Uint 129

The uint data type.

Ulong 130

The ulong data type.

Use 131

The use reserved word.

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.

Applies to

See also