1// Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. 2// See LICENSE.txt in the project root for complete license information. 3 4///<reference path='typescript.ts' /> 5 6module TypeScript { 7 // Note: Any addition to the NodeType should also be supported with addition to AstWalkerDetailCallback 8 export enum NodeType { 9 None, 10 Empty, 11 EmptyExpr, 12 True, 13 False, 14 This, 15 Super, 16 QString, 17 Regex, 18 Null, 19 ArrayLit, 20 ObjectLit, 21 Void, 22 Comma, 23 Pos, 24 Neg, 25 Delete, 26 Await, 27 In, 28 Dot, 29 From, 30 Is, 31 InstOf, 32 Typeof, 33 NumberLit, 34 Name, 35 TypeRef, 36 Index, 37 Call, 38 New, 39 Asg, 40 AsgAdd, 41 AsgSub, 42 AsgDiv, 43 AsgMul, 44 AsgMod, 45 AsgAnd, 46 AsgXor, 47 AsgOr, 48 AsgLsh, 49 AsgRsh, 50 AsgRs2, 51 ConditionalExpression, 52 LogOr, 53 LogAnd, 54 Or, 55 Xor, 56 And, 57 Eq, 58 Ne, 59 Eqv, 60 NEqv, 61 Lt, 62 Le, 63 Gt, 64 Ge, 65 Add, 66 Sub, 67 Mul, 68 Div, 69 Mod, 70 Lsh, 71 Rsh, 72 Rs2, 73 Not, 74 LogNot, 75 IncPre, 76 DecPre, 77 IncPost, 78 DecPost, 79 TypeAssertion, 80 FuncDecl, 81 Member, 82 VarDecl, 83 ArgDecl, 84 Return, 85 Break, 86 Continue, 87 Throw, 88 For, 89 ForIn, 90 If, 91 While, 92 DoWhile, 93 Block, 94 Case, 95 Switch, 96 Try, 97 TryCatch, 98 TryFinally, 99 Finally, 100 Catch, 101 List, 102 Script, 103 ClassDeclaration, 104 InterfaceDeclaration, 105 ModuleDeclaration, 106 ImportDeclaration, 107 With, 108 Label, 109 LabeledStatement, 110 EBStart, 111 GotoEB, 112 EndCode, 113 Error, 114 Comment, 115 Debugger, 116 GeneralNode = FuncDecl, 117 LastAsg = AsgRs2, 118 } 119}