Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
JSToken Enumeration
Collapse the table of content
Expand the table of content

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

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0

Community Additions

© 2015 Microsoft