Options
All
  • Public
  • Public/Protected
  • All
Menu

Allow path expressions against ASTs from the TypeScript parser. For reference material on the grammar, and which productions are legal names in path expressions, see the grammar at https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#A. See also the ES6 grammar of which TypeScript is a superset: http://www.ecma-international.org/ecma-262/6.0/#sec-grammar-summary. and the SyntaxKind type defined by the TypeScript compiler. Invalid production names will be rejected with a runtime error.

Will try to determine TypeScript ScriptKind from the file extension.

Hierarchy

  • TypeScriptFileParser

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

rootName

rootName: string = ts.SyntaxKind[ts.SyntaxKind.SourceFile]

scriptTarget

scriptTarget: ScriptTarget

Methods

toAst

  • toAst(f: File): Promise<TreeNode>

validate

  • validate(pex: PathExpression): void

Generated using TypeDoc