Home
last modified time | relevance | path

Searched refs:getSourceFile (Results 1 – 25 of 92) sorted by relevance

1234

/third_party/typescript/src/testRunner/unittests/
DreuseProgramStructure.ts110 let oldFile = oldProgram.getSourceFile(t.name) as SourceFileWithText;
126 getSourceFile: fileName => files.get(fileName),
179 const file = program.getSourceFile(fileName);
236 … const program1Diagnostics = program1.getSemanticDiagnostics(program1.getSourceFile("a.ts"));
237 … const program2Diagnostics = program2.getSemanticDiagnostics(program2.getSourceFile("a.ts"));
247 … const program1Diagnostics = program1.getSemanticDiagnostics(program1.getSourceFile("a.ts"));
248 … const program2Diagnostics = program2.getSemanticDiagnostics(program2.getSourceFile("a.ts"));
266 … const program1Diagnostics = program1.getSemanticDiagnostics(program1.getSourceFile("a.ts"));
267 … const program2Diagnostics = program2.getSemanticDiagnostics(program2.getSourceFile("a.ts"));
406 …assert.isDefined(program2.getSourceFile("/a.ts")!.resolvedModules!.get("a", /*mode*/ undefined), "…
[all …]
DprogramApi.ts110getSourceFile: (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")!;
DpublicApi.ts107 const file = program.getSourceFile("/file.ts")!;
129 const file = program.getSourceFile("/file.ts")!;
153 const file = program.getSourceFile("/file.ts")!;
173 const file = program.getSourceFile("/file.ts")!;
DtypeParameterIsPossiblyReferenced.ts22 const file = program.getSourceFile("/file.ts")!;
Dprinter.ts104 const file = program.getSourceFile("/test.d.ts")!;
116 const file = program.getSourceFile("/test.d.ts")!;
DmoduleResolution.ts506 getSourceFile: (fileName: string, languageVersion: ScriptTarget) => {
535 …assert.isTrue(program.getSourceFile(relativeFileName) !== undefined, `expected to get file by rela…
595 getSourceFile: (fileName: string, languageVersion: ScriptTarget) => {
1574 getSourceFile: fileName => sourceFiles.get(fileName),
1613 getSourceFile: fileName => fileName === file.fileName ? file : undefined,
1642 getSourceFile: fileName => fileName === file.fileName ? file : undefined,
/third_party/typescript/src/linter/ArkTSLinter_1_0/
DAutofixer.ts120 const text = printer.printNode(EmitHint.Unspecified, arrowFunc, funcExpr.getSourceFile());
125 …const text = ": " + printer.printNode(EmitHint.Unspecified, typeNode, funcLikeDecl.getSourceFile()…
171 …FieldText = printer.printNode(EmitHint.Unspecified, newFieldNode, ctorDecl.getSourceFile()) + "\n";
177 …nst newParamText = printer.printNode(EmitHint.Unspecified, newParamDecl, ctorDecl.getSourceFile());
193 const newBodyText = printer.printNode(EmitHint.Unspecified, newBody, ctorDecl.getSourceFile());
/third_party/typescript/src/linter/ArkTSLinter_1_1/
DAutofixer.ts120 const text = printer.printNode(EmitHint.Unspecified, arrowFunc, funcExpr.getSourceFile());
125 …const text = ": " + printer.printNode(EmitHint.Unspecified, typeNode, funcLikeDecl.getSourceFile()…
171 …FieldText = printer.printNode(EmitHint.Unspecified, newFieldNode, ctorDecl.getSourceFile()) + "\n";
177 …nst newParamText = printer.printNode(EmitHint.Unspecified, newParamDecl, ctorDecl.getSourceFile());
193 const newBodyText = printer.printNode(EmitHint.Unspecified, newBody, ctorDecl.getSourceFile());
/third_party/typescript/src/testRunner/unittests/tsserver/
DdocumentRegistry.ts59 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);
DcompletionsIncomplete.ts171 …ned(project.getLanguageService(/*ensureSynchronized*/ true).getProgram()?.getSourceFile(fileName));
210 …ned(project.getLanguageService(/*ensureSynchronized*/ true).getProgram()?.getSourceFile(fileName));
240 …ned(project.getLanguageService(/*ensureSynchronized*/ true).getProgram()?.getSourceFile(fileName));
DreloadProjects.ts32 assert.equal(project.getCurrentProgram()?.getSourceFile(file2.path)?.text, updatedText);
38 assert.isUndefined(project.getCurrentProgram()?.getSourceFile(file2.path)?.text);
/third_party/typescript/src/services/
Dsourcemaps.ts59 const file = getSourceFile(info.fileName);
69 const sourceFile = getSourceFile(info.fileName);
90 function getSourceFile(fileName: string) {
120 getSourceFile(fileName) || getOrCreateSourceFileLike(fileName) :
Dclassifier2020.ts123 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;
Drename.ts70 const sourceFile = declaration.getSourceFile();
92 … if (some(declarations, declaration => isInsideNodeModules(declaration.getSourceFile().path))) {
101 const declPackage = getPackagePathComponents(declaration.getSourceFile().path);
DfindAllReferences.ts342 …checker, symbol, node.getSourceFile(), getContainerNode(node), node).displayParts || [textPart("th…
382 const sourceFile = node.getSourceFile();
393 …PartsDocumentationAndSymbolKind(checker, symbol, enclosingDeclaration.getSourceFile(), enclosingDe…
428 const sourceFile = entry.node.getSourceFile();
557 getTextSpan(entry.node, entry.node.getSourceFile());
681 …onst referencedFileName = node.getSourceFile().resolvedModules?.get(node.text, getModeForUsageLoca…
682 … const referencedFile = referencedFileName ? program.getSourceFile(referencedFileName) : undefined;
723 const moduleSymbol = program.getSourceFile(fileName)?.symbol;
728 const referencedFile = program.getSourceFile(fileName);
824 program.getSourceFile(entry.fileName)! :
[all …]
DcallHierarchy.ts112 const sourceFile = node.getSourceFile();
141 …tringWriter(writer => printer.writeNode(EmitHint.Unspecified, node, node.getSourceFile(), writer));
197 …const keys = map(symbol.declarations, decl => ({ file: decl.getSourceFile().fileName, pos: decl.po…
298 const sourceFile = node.getSourceFile();
326 const sourceFile = node.getSourceFile();
366 const range = createTextRangeFromNode(target, node.getSourceFile());
DgoToDefinition.ts41 const sourceFile = node.getSourceFile();
87 …if (searchOtherFilesOnly && every(symbol.declarations, d => d.getSourceFile().fileName === sourceF…
221 … const file = reference && program.getSourceFile(reference.resolvedFileName!); // TODO:GH#18217
237 file: program.getSourceFile(fileName),
431 const sourceFile = declaration.getSourceFile();
Dservices.ts43 public getSourceFile(): SourceFile {
79 return (sourceFile || this.getSourceFile()).text.substring(this.pos, this.end);
85 sourceFile = this.getSourceFile();
148 …rceFileName: string | undefined = sourceFile ? sourceFile.fileName : node.getSourceFile().fileName;
153 scanner.setText((sourceFile || node.getSourceFile()).text);
238 public getSourceFile(): SourceFile {
267 return (sourceFile || this.getSourceFile()).text.substring(this.pos, this.end);
272 sourceFile = this.getSourceFile();
1278 const sourceFile = program.getSourceFile(fileName);
1326 getSourceFile: getOrCreateSourceFile,
[all …]
/third_party/typescript/scripts/
DbuildProtocol.mjs95 const sourceFile = decl.getSourceFile();
188 const emitResult = program.emit(program.getSourceFile(protocolTs), (file, content) => {
215 const originalGetSourceFile = host.getSourceFile;
216 host.getSourceFile = (fileName) => { function
230 const protocolFile = program.getSourceFile("protocol.d.ts");
/third_party/typescript/src/harness/
DtypeWriter.ts51 const sourceFile = this.program.getSourceFile(fileName)!;
60 const sourceFile = this.program.getSourceFile(fileName)!;
176 const declSourceFile = declaration.getSourceFile();
/third_party/typescript/src/testRunner/
Dtest262Runner.ts77 …const sourceFile = testState.compilerResult.program!.getSourceFile(Test262BaselineRunner.getTestFi…
82 …const sourceFile = testState.compilerResult.program!.getSourceFile(Test262BaselineRunner.getTestFi…
/third_party/typescript/src/testRunner/unittests/services/extract/
DsymbolWalker.ts9 const file = result.program!.getSourceFile("main.ts")!;
Dhelpers.ts99 const sourceFile = program.getSourceFile(path)!;
162 const sourceFile = program.getSourceFile(f.path)!;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/GSYM/
DLookupResult.h53 std::string getSourceFile(uint32_t Index) const;
/third_party/typescript/src/testRunner/unittests/config/
DprojectReferences.ts196 const errs = program.getSemanticDiagnostics(program.getSourceFile("/primary/a.ts"));
346 …const semanticDiagnostics = program.getSemanticDiagnostics(program.getSourceFile("/alpha/src/a.ts"…

1234