Searched refs:getSourceFile (Results 1 – 25 of 88) sorted by relevance
1234
110 let oldFile = <SourceFileWithText>oldProgram.getSourceFile(t.name);126 getSourceFile: fileName => files.get(fileName),179 const file = program.getSourceFile(fileName);235 … const program1Diagnostics = program1.getSemanticDiagnostics(program1.getSourceFile("a.ts"));236 … const program2Diagnostics = program2.getSemanticDiagnostics(program1.getSourceFile("a.ts"));246 … const program1Diagnostics = program1.getSemanticDiagnostics(program1.getSourceFile("a.ts"));247 … const program2Diagnostics = program2.getSemanticDiagnostics(program1.getSourceFile("a.ts"));386 …assert.isDefined(program2.getSourceFile("/a.ts")!.resolvedModules!.get("a"), "'a' is not an unreso…398 let sourceFile = program1.getSourceFile("/a.ts")!;401 …assert.strictEqual(sourceFile.statements[2].getSourceFile(), sourceFile, "parent pointers are upda…[all …]
110 …getSourceFile: (fileName: string, languageVersion: ScriptTarget, _onError?: (message: string) => v…159 … const actual = program.isSourceFileFromExternalLibrary(program.getSourceFile(file.file)!);174 const json = program.getSourceFile("/package.json")!;191 const sourceFile = program.getSourceFile("main.ts")!;203 const sourceFile = program.getSourceFile("main.ts")!;
100 const file = program.getSourceFile("/file.ts")!;122 const file = program.getSourceFile("/file.ts")!;
104 const file = program.getSourceFile("/test.d.ts")!;116 const file = program.getSourceFile("/test.d.ts")!;
481 getSourceFile: (fileName: string, languageVersion: ScriptTarget) => {510 …assert.isTrue(program.getSourceFile(relativeFileName) !== undefined, `expected to get file by rela…570 getSourceFile: (fileName: string, languageVersion: ScriptTarget) => {1516 getSourceFile: fileName => sourceFiles.get(fileName),1555 getSourceFile: fileName => fileName === file.fileName ? file : undefined,1584 getSourceFile: fileName => fileName === file.fileName ? file : undefined,
59 assert.equal(project.getSourceFile(moduleInfo.path), sourceFile);68 assert.equal(project.getSourceFile(moduleInfo.path), sourceFile);77 assert.equal(project.getSourceFile(moduleInfo.path), sourceFile);89 … assert.equal(project.getSourceFile(moduleInfo.path), moduleInfo.cacheSourceFile!.sourceFile);
32 assert.equal(project.getCurrentProgram()?.getSourceFile(file2.path)?.text, updatedText);38 assert.isUndefined(project.getCurrentProgram()?.getSourceFile(file2.path)?.text);
119 const text = printer.printNode(EmitHint.Unspecified, arrowFunc, funcExpr.getSourceFile());124 …const text = ": " + printer.printNode(EmitHint.Unspecified, typeNode, funcLikeDecl.getSourceFile()…170 …FieldText = printer.printNode(EmitHint.Unspecified, newFieldNode, ctorDecl.getSourceFile()) + "\n";176 …nst newParamText = printer.printNode(EmitHint.Unspecified, newParamDecl, ctorDecl.getSourceFile());192 const newBodyText = printer.printNode(EmitHint.Unspecified, newBody, ctorDecl.getSourceFile());
56 const sourceFile = decl.getSourceFile();133 const emitResult = program.emit(program.getSourceFile(protocolTs), (file, content) => {157 const originalGetSourceFile = host.getSourceFile;158 host.getSourceFile = (fileName) => {171 const protocolFile = program.getSourceFile("protocol.d.ts")!;
59 const file = getSourceFile(info.fileName);69 const sourceFile = getSourceFile(info.fileName);90 function getSourceFile(fileName: string) {120 getSourceFile(fileName) || getOrCreateSourceFileLike(fileName) :
123 if (program.isSourceFileDefaultLibrary(decl.getSourceFile())) {127 …arations && symbol.declarations.some(d => program.isSourceFileDefaultLibrary(d.getSourceFile()))) {196 …ile(decl.parent.parent.parent) || isCatchClause(decl.parent)) && decl.getSourceFile() === sourceFi…199 return !isSourceFile(decl.parent) && decl.getSourceFile() === sourceFile;
331 …checker, symbol, node.getSourceFile(), getContainerNode(node), node).displayParts || [textPart("th…371 const sourceFile = node.getSourceFile();382 …PartsDocumentationAndSymbolKind(checker, symbol, enclosingDeclaration.getSourceFile(), enclosingDe…409 const sourceFile = entry.node.getSourceFile();538 getTextSpan(entry.node, entry.node.getSourceFile());662 … const referencedFileName = node.getSourceFile().resolvedModules?.get(node.text)?.resolvedFileName;663 … const referencedFile = referencedFileName ? program.getSourceFile(referencedFileName) : undefined;694 const moduleSymbol = program.getSourceFile(fileName)?.symbol;699 const referencedFile = program.getSourceFile(fileName);795 program.getSourceFile(entry.fileName)! :[all …]
128 …tringWriter(writer => printer.writeNode(EmitHint.Unspecified, node, node.getSourceFile(), writer));184 …const keys = map(symbol.declarations, decl => ({ file: decl.getSourceFile().fileName, pos: decl.po…277 const sourceFile = node.getSourceFile();305 const sourceFile = node.getSourceFile();344 const range = createTextRangeFromNode(target, node.getSourceFile());
43 public getSourceFile(): SourceFile {79 return (sourceFile || this.getSourceFile()).text.substring(this.pos, this.end);85 sourceFile = this.getSourceFile();146 …rceFileName: string | undefined = sourceFile ? sourceFile.fileName : node.getSourceFile().fileName;151 scanner.setText((sourceFile || node.getSourceFile()).text);236 public getSourceFile(): SourceFile {265 return (sourceFile || this.getSourceFile()).text.substring(this.pos, this.end);270 sourceFile = this.getSourceFile();1291 const sourceFile = program.getSourceFile(fileName);1347 getSourceFile: getOrCreateSourceFile,[all …]
51 const sourceFile = this.program.getSourceFile(fileName)!;60 const sourceFile = this.program.getSourceFile(fileName)!;168 const declSourceFile = declaration.getSourceFile();
77 …const sourceFile = testState.compilerResult.program!.getSourceFile(Test262BaselineRunner.getTestFi…82 …const sourceFile = testState.compilerResult.program!.getSourceFile(Test262BaselineRunner.getTestFi…
149 const moduleDeclarationSourceFile = moduleDeclaration?.getSourceFile();172 … (classOrInterface && !program.isSourceFileFromExternalLibrary(classOrInterface.getSourceFile())) {178 const declSourceFile = classOrInterface.getSourceFile();186 …teIdentifier(token) && !program.isSourceFileFromExternalLibrary(enumDeclaration.getSourceFile())) {391 …changes.replaceNode(parentDeclaration.getSourceFile(), parentDeclaration, factory.updateEnumDeclar…
77 …function getSourceFile(fileName: string, languageVersion: ScriptTarget, onError?: (message: string…173 getSourceFile,208 getSourceFile?: CompilerHost["getSourceFile"]243 …const getSourceFileWithCache: CompilerHost["getSourceFile"] | undefined = getSourceFile ? (fileNam…248 … const sourceFile = getSourceFile(fileName, languageVersion, onError, shouldCreateNewSourceFile);1044 getSourceFile,1242 const oldSourceFile = oldProgram && oldProgram.getSourceFile(file.fileName);1351 …const resolvedFile = resolutionToFile && oldProgram!.getSourceFile(resolutionToFile.resolvedFileNa…1447 …: host.getSourceFile(oldSourceFile.fileName, options.target!, /*onError*/ undefined, shouldCreateN…1639 getSourceFile: program.getSourceFile,[all …]
97 const sourceFile = program.getSourceFile(path)!;160 const sourceFile = program.getSourceFile(f.path)!;
9 const file = result.program!.getSourceFile("main.ts")!;
53 std::string getSourceFile(uint32_t Index) const;
196 const errs = program.getSemanticDiagnostics(program.getSourceFile("/primary/a.ts"));346 …const semanticDiagnostics = program.getSemanticDiagnostics(program.getSourceFile("/alpha/src/a.ts"…
176 … assert.deepEqual(program.getCachedSemanticDiagnostics(program.getSourceFile(mainFile.path)), []);178 …assert.deepEqual(program.getCachedSemanticDiagnostics(program.getSourceFile(otherFile.path)), /*ex…
19 std::string LookupResult::getSourceFile(uint32_t Index) const { in getSourceFile() function in LookupResult
106 public function getSourceFile() function in Google\\Protobuf\\Internal\\GeneratedCodeInfo\\Annotation