Implement string, number literal and completion record

This commit is contained in:
2020-08-13 12:22:09 +05:30
parent e4423fa1b5
commit cb24c79a58
10 changed files with 182 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
import { Node } from './acorn-helpers/types';
class NotImplementedError extends TypeError {}
export function throwUnknownNode(node: Node) {
throw new NotImplementedError(
`Unknown type: ${node.type} with text "${node.sourceFile?.slice(
node.start,
node.end
)}"`
);
}