@microsoft/powerquery-parser
Advanced tools
Comparing version
@@ -36,3 +36,6 @@ "use strict"; | ||
if (!(value instanceof Error)) { | ||
throw new _1.CommonError.InvariantError(`Expected value to be instanceof Error`, { typeof: typeof value }); | ||
throw new _1.CommonError.InvariantError(`Expected value to be instanceof Error`, { | ||
typeof: typeof value, | ||
value, | ||
}); | ||
} | ||
@@ -39,0 +42,0 @@ } |
@@ -21,3 +21,3 @@ import { Ast } from "../../../language"; | ||
export declare function maybeUnboxIfAst(nodeIdMapCollection: Collection, nodeId: number): Ast.TNode | undefined; | ||
export declare function maybeUnboxIfAstChecked<C extends Ast.TWrapped["content"]>(nodeIdMapCollection: Collection, nodeId: number, expectedNodeKinds: ReadonlyArray<C["kind"]> | C["kind"]): C | undefined; | ||
export declare function maybeUnboxIfAstChecked<T extends Ast.TNode>(nodeIdMapCollection: Collection, nodeId: number, expectedNodeKinds: ReadonlyArray<T["kind"]> | T["kind"]): T | undefined; | ||
export declare function maybeUnboxWrappedContent(nodeIdMapCollection: Collection, nodeId: number): TXorNode | undefined; | ||
@@ -24,0 +24,0 @@ export declare function maybeUnboxWrappedContentChecked<C extends Ast.TWrapped["content"]>(nodeIdMapCollection: Collection, nodeId: number, expectedNodeKinds: ReadonlyArray<C["kind"]> | C["kind"]): XorNode<C> | undefined; |
{ | ||
"name": "@microsoft/powerquery-parser", | ||
"version": "0.9.6", | ||
"version": "0.9.7", | ||
"description": "A parser for the Power Query/M formula language.", | ||
@@ -5,0 +5,0 @@ "author": "Microsoft", |
Sorry, the diff of this file is not supported yet
1645676
0.12%349
0.29%21016
0.01%