Private
parsePrivate
Recursive function that runs through the AST of a source and parses the nodes. Creates the class / function / etc declarations and instanciates a new module / namespace resource if needed.
TsResourceParser
Parses the given source into an anonymous File resource. Mainly used to parse source code of a document.
TsResourceParser
Optional
scriptKind: ScriptKind = ScriptKind.TSPrivate
parsePrivate
Parses the typescript source into the file instance. Calls .parse afterwards to get the declarations and other information about the source.
TsResourceParser
Generated using TypeDoc
Magic.happens('here'); This class is the parser of the whole extension. It uses the typescript compiler to parse a file or given source code into the token stream and therefore into the AST of the source. Afterwards an array of resources is generated and returned.
Export