Home
last modified time | relevance | path

Searched refs:emptyArray (Results 1 – 25 of 122) sorted by relevance

12345

/third_party/typescript/src/server/
DtypingsCache.ts41 if ((arr1 || emptyArray).length === 0 && (arr2 || emptyArray).length === 0) {
117 typings: entry ? entry.typings : emptyArray,
135 return !typeAcquisition || !typeAcquisition.enable ? emptyArray : typings;
Dproject.ts227 typingFiles: SortedReadonlyArray<string> = emptyArray;
492 return ts.emptyArray;
503 return addRange(result, this.typingFiles) || ts.emptyArray;
719 return filter(this.projectErrors, diagnostic => !diagnostic.file) || emptyArray;
726 return this.projectErrors || emptyArray;
791 return { emitSkipped: true, diagnostics: emptyArray };
986 return emptyArray;
1175 … readonly Path[] = this.resolutionCache.finishRecordingFilesWithChangedResolutions() || emptyArray;
1354 … const oldExternalFiles = this.externalFiles || emptyArray as SortedReadonlyArray<string>;
1825 if (this.projectService.serverMode !== LanguageServiceMode.Semantic) return emptyArray;
[all …]
/third_party/typescript/src/testRunner/unittests/tscWatch/
DprogramUpdates.ts28 changes: emptyArray
48 changes: emptyArray
80 changes: emptyArray
114 changes: emptyArray
318 changes: emptyArray
380 changes: emptyArray
491 changes: emptyArray
542 oldPrograms: emptyArray,
560 oldPrograms: emptyArray,
566 baseline.push(`First program is not updated:: ${getPrograms() === emptyArray}`);
[all …]
DforceConsistentCasingInFileNames.ts120 changes: emptyArray,
295 changes: emptyArray,
327 changes: emptyArray,
358 changes: emptyArray,
Dincremental.ts33 const argsToPass = [incremental ? "-i" : "-w", ...(optionsToExtend || emptyArray)];
35 let oldPrograms: readonly CommandLineProgram[] = emptyArray;
190 … assert.deepEqual(state.semanticDiagnosticsPerFile!.get(libFile.path as Path), emptyArray);
191 … assert.deepEqual(state.semanticDiagnosticsPerFile!.get(file1.path as Path), emptyArray);
388 changes: emptyArray
DwatchEnvironment.ts217 changes: emptyArray
413 changes: emptyArray
432 changes: emptyArray
451 changes: emptyArray
466 changes: emptyArray
/third_party/typescript/src/services/refactors/
DgenerateGetAccessorAndSetAccessor.ts28 if (!context.endPosition) return emptyArray;
30 if (!info) return emptyArray;
48 return emptyArray;
DaddOrRemoveBracesToArrowFunction.ts32 if (!info) return emptyArray;
55 return emptyArray;
DinferFunctionReturnType.ts28 if (!info) return emptyArray;
43 return emptyArray;
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/expressions/array_literals/
Darray_literal_3.ts25 const emptyArray: any[] = []; constant
26 Assert.isUndefined(emptyArray[0]);
/third_party/typescript/src/services/codefixes/
DannotateWithTypeFromJSDoc.ts80 return factory.createTypeReferenceNode("any", emptyArray);
101 …sitNode(node.type, transformJSDocType), factory.createTypeReferenceNode("undefined", emptyArray)]);
105 …e([visitNode(node.type, transformJSDocType), factory.createTypeReferenceNode("null", emptyArray)]);
115 …return factory.createFunctionTypeNode(emptyArray, node.parameters.map(transformJSDocParameter), no…
149 … args = factory.createNodeArray([factory.createTypeReferenceNode("any", emptyArray)]);
DaddOptionalPropertyUndefined.ts28 return emptyArray;
35 return emptyArray;
/third_party/typescript/tests/baselines/reference/
DimplicitAnyWidenToAny.js6 var emptyArray = []; variable
35 var emptyArray = []; variable
DimplicitAnyWidenToAny.symbols14 var emptyArray = [];
15 >emptyArray : Symbol(emptyArray, Decl(implicitAnyWidenToAny.ts, 4, 3))
DimplicitAnyWidenToAny.types17 var emptyArray = [];
18 >emptyArray : any[]
/third_party/typescript/src/testRunner/unittests/tsserver/
DsyntacticServer.ts147 checkProjectActualFiles(project, emptyArray);
153 checkProjectActualFiles(project, emptyArray);
158 checkProjectActualFiles(project, emptyArray);
DexternalProjects.ts29 checkProjectActualFiles(project, emptyArray);
528 emptyArray : // Since no files opened from this project, its not loaded
588 …checkProjectActualFiles(configuredProjectAt(projectService, 0), emptyArray); // Configured project…
657 …checkProjectActualFiles(configuredProjectAt(projectService, 0), emptyArray); // Configured project…
658 …checkProjectActualFiles(configuredProjectAt(projectService, 1), emptyArray); // Configured project…
693 …checkProjectActualFiles(configuredProjectAt(projectService, 0), emptyArray); // Configured project…
694 …checkProjectActualFiles(configuredProjectAt(projectService, 1), emptyArray); // Configured project…
827 checkProjectActualFiles(project, emptyArray);
/third_party/typescript/src/services/
DnavigateTo.ts13 if (!patternMatcher) return emptyArray;
94 return emptyArray;
104 return emptyArray;
DgoToDefinition.ts5 …rence(resolvedRef.reference.fileName, resolvedRef.fileName, resolvedRef.unverified)] || emptyArray;
20 return getDefinitionFromOverriddenMember(typeChecker, node) || emptyArray;
54 …const importDeclaration = forEach([node, ...symbol?.declarations || emptyArray], n => findAncestor…
113 …itionFromSymbol(typeChecker, symbol, node, failedAliasResolution, calledDeclaration) || emptyArray;
129 …cl, typeChecker, shorthandSymbol, node, /*unverified*/ false, failedAliasResolution)) : emptyArray;
130 …n concatenate(definitions, getDefinitionFromObjectLiteralElement(typeChecker, node) || emptyArray);
148 … return name === undefined ? emptyArray : flatMap(type.isUnion() ? type.types : [type], t => {
/third_party/typescript/src/testRunner/unittests/tsbuild/
DmoduleResolution.ts58 changes: emptyArray
66 changes: emptyArray
/third_party/typescript/src/testRunner/unittests/tsc/
DcancellationToken.ts53 let programs: CommandLineProgram[] = emptyArray;
54 let oldPrograms: CommandLineProgram[] = emptyArray;
DdeclarationEmit.ts23 changes: emptyArray
37 changes: emptyArray
/third_party/typescript/src/testRunner/unittests/
DmoduleResolution.ts635 () => emptyArray
662 emptyArray,
699 emptyArray,
736 emptyArray,
774 emptyArray,
827 emptyArray,
890 emptyArray,
931 () => emptyArray
947 () => emptyArray
/third_party/typescript/src/testRunner/unittests/services/
DlanguageService.ts63 diagnostics: emptyArray,
64 outputFiles: emptyArray,
76 diagnostics: emptyArray,
/third_party/typescript/tests/cases/compiler/
DimplicitAnyWidenToAny.ts6 var emptyArray = []; variable

12345