sanex3339 9 年之前
父节点
当前提交
6b0efa5d53
共有 1 个文件被更改,包括 26 次插入0 次删除
  1. 26 0
      typings/main/ambient/escodegen/index.d.ts

+ 26 - 0
typings/main/ambient/escodegen/index.d.ts

@@ -138,6 +138,32 @@ declare module 'escodegen' {
     verbatim?: string;
   }
 
+  export enum Precedence {
+    Sequence,
+    Yield,
+    Await,
+    Assignment,
+    Conditional,
+    ArrowFunction,
+    LogicalOR,
+    LogicalAND,
+    BitwiseOR,
+    BitwiseXOR,
+    BitwiseAND,
+    Equality,
+    Relational,
+    BitwiseSHIFT,
+    Additive,
+    Multiplicative,
+    Unary,
+    Postfix,
+    Call,
+    New,
+    TaggedTemplate,
+    Member,
+    Primary
+}
+
   /**
    * Produces given Abstract Syntax Tree as javascript code
    * @param ast The Abstract Syntax Tree to generate code from