Lines Matching full:code
24 * get source file from code segment
26 * @param code source code
29 public static getASTNode(fileName: string, code: string): ts.SourceFile {
30 const key = this.getKeyFromCode(code);
35 sourceFile = this.createSourceFile(fileName, code);
57 public static createSourceFile(fileName: string, code: string): ts.SourceFile {
58 …return ts.createSourceFile(fileName, code, ts.ScriptTarget.Latest, true, undefined, ETS_COMPILER_O…
62 * convert source code to hash string
63 * @param code source code
66 private static getKeyFromCode(code: string): string {
67 return crypto.createHash('sha256').update(code).digest('hex');