Home
last modified time | relevance | path

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

1234

/third_party/typescript/src/testRunner/unittests/
DreuseProgramStructure.ts110 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 …]
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.ts100 const file = program.getSourceFile("/file.ts")!;
122 const file = program.getSourceFile("/file.ts")!;
Dprinter.ts104 const file = program.getSourceFile("/test.d.ts")!;
116 const file = program.getSourceFile("/test.d.ts")!;
DmoduleResolution.ts481 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,
/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);
DreloadProjects.ts32 assert.equal(project.getCurrentProgram()?.getSourceFile(file2.path)?.text, updatedText);
38 assert.isUndefined(project.getCurrentProgram()?.getSourceFile(file2.path)?.text);
/third_party/typescript/src/linter/
DAutofixer.ts119 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());
/third_party/typescript/scripts/
DbuildProtocol.ts56 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")!;
/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;
DfindAllReferences.ts331 …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 …]
DcallHierarchy.ts128 …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());
Dservices.ts43 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 …]
/third_party/typescript/src/harness/
DtypeWriter.ts51 const sourceFile = this.program.getSourceFile(fileName)!;
60 const sourceFile = this.program.getSourceFile(fileName)!;
168 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/services/codefixes/
DfixAddMissingMember.ts149 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…
/third_party/typescript/src/compiler/
Dprogram.ts77 …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 …]
/third_party/typescript/src/testRunner/unittests/services/extract/
Dhelpers.ts97 const sourceFile = program.getSourceFile(path)!;
160 const sourceFile = program.getSourceFile(f.path)!;
DsymbolWalker.ts9 const file = result.program!.getSourceFile("main.ts")!;
/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"…
/third_party/typescript/src/testRunner/unittests/tscWatch/
DwatchApi.ts176 … assert.deepEqual(program.getCachedSemanticDiagnostics(program.getSourceFile(mainFile.path)), []);
178 …assert.deepEqual(program.getCachedSemanticDiagnostics(program.getSourceFile(otherFile.path)), /*ex…
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/GSYM/
DLookupResult.cpp19 std::string LookupResult::getSourceFile(uint32_t Index) const { in getSourceFile() function in LookupResult
/third_party/protobuf/php/src/Google/Protobuf/Internal/GeneratedCodeInfo/
DAnnotation.php106 public function getSourceFile() function in Google\\Protobuf\\Internal\\GeneratedCodeInfo\\Annotation

1234