/third_party/typescript/tests/baselines/reference/ |
D | arrayFrom.symbols | 1 === tests/cases/compiler/arrayFrom.ts === 6 >A : Symbol(A, Decl(arrayFrom.ts, 0, 0)) 9 >a : Symbol(A.a, Decl(arrayFrom.ts, 3, 13)) 13 >B : Symbol(B, Decl(arrayFrom.ts, 5, 1)) 16 >b : Symbol(B.b, Decl(arrayFrom.ts, 7, 13)) 20 >inputA : Symbol(inputA, Decl(arrayFrom.ts, 11, 5)) 21 >A : Symbol(A, Decl(arrayFrom.ts, 0, 0)) 24 >inputB : Symbol(inputB, Decl(arrayFrom.ts, 12, 5)) 25 >B : Symbol(B, Decl(arrayFrom.ts, 5, 1)) 28 >inputALike : Symbol(inputALike, Decl(arrayFrom.ts, 13, 5)) [all …]
|
D | arrayFrom.errors.txt | 1 tests/cases/compiler/arrayFrom.ts(20,7): error TS2322: Type 'A[]' is not assignable to type 'B[]'. 3 tests/cases/compiler/arrayFrom.ts(23,7): error TS2322: Type 'A[]' is not assignable to type 'B[]'. 6 ==== tests/cases/compiler/arrayFrom.ts (2 errors) ==== 30 !!! related TS2728 tests/cases/compiler/arrayFrom.ts:9:3: 'b' is declared here.
|
/third_party/typescript/src/testRunner/unittests/ |
D | createSetShim.ts | 244 const actual = arrayFrom(set.keys()); 253 assert.deepEqual(arrayFrom(set.keys()), ["c"]); 254 assert.deepEqual(arrayFrom(set.values()), ["c"]); 255 assert.deepEqual(arrayFrom(set.entries()), [["c", "c"]]); 263 assert.deepEqual(arrayFrom(set.keys()), ["a"]); 264 assert.deepEqual(arrayFrom(set.values()), ["a"]); 265 assert.deepEqual(arrayFrom(set.entries()), [["a", "a"]]); 274 assert.deepEqual(arrayFrom(set.keys()), ["a", "e"]); 275 assert.deepEqual(arrayFrom(set.values()), ["a", "e"]); 276 assert.deepEqual(arrayFrom(set.entries()), [["a", "a"], ["e", "e"]]); [all …]
|
D | createMapShim.ts | 261 const actual = arrayFrom(map.keys()); 270 assert.deepEqual(arrayFrom(map.keys()), ["c"]); 271 assert.deepEqual(arrayFrom(map.values()), ["d"]); 272 assert.deepEqual(arrayFrom(map.entries()), [["c", "d"]]); 280 assert.deepEqual(arrayFrom(map.keys()), ["a"]); 281 assert.deepEqual(arrayFrom(map.values()), ["b"]); 282 assert.deepEqual(arrayFrom(map.entries()), [["a", "b"]]); 291 assert.deepEqual(arrayFrom(map.keys()), ["a", "e"]); 292 assert.deepEqual(arrayFrom(map.values()), ["b", "f"]); 293 assert.deepEqual(arrayFrom(map.entries()), [["a", "b"], ["e", "f"]]); [all …]
|
D | customTransforms.ts | 21 …const program = createProgram(arrayFrom(fileMap.keys()), { newLine: NewLineKind.LineFeed, ...optio… 24 for (const [file, text] of arrayFrom(outputs.entries())) {
|
D | programApi.ts | 10 const notFound = arrayFrom(mapDefinedIterator(map.keys(), k => map.has(k) ? k : undefined));
|
/third_party/typescript/src/services/ |
D | refactorProvider.ts | 13 return arrayFrom(flatMapIterator(refactors.values(), refactor =>
|
D | documentRegistry.ts | 125 …const bucketInfoArray = arrayFrom(buckets.keys()).filter(name => name && name.charAt(0) === "_").m… 244 return arrayFrom(buckets.entries(), ([key, bucket]): [string, number | undefined] => {
|
D | codeFixProvider.ts | 38 return arrayFrom(errorCodeToFixes.keys());
|
D | documentHighlights.ts | 35 return arrayFrom(map.entries(), ([fileName, highlightSpans]) => {
|
/third_party/typescript/src/compiler/ |
D | builderState.ts | 428 …return arrayFrom(mapDefinedIterator(seenMap.keys(), path => programOfThisState.getSourceFileByPath… 446 …return arrayFrom(mapDefinedIterator(state.referencedMap!.entries(), ([filePath, referencesInFile])… 554 return arrayFrom(mapDefinedIterator(seenFileNamesMap.values(), value => value));
|
D | builder.ts | 723 … for (const key of arrayFrom(state.referencedMap.keys()).sort(compareStringsCaseSensitive)) { 724 …referencedMap[relativeToBuildInfo(key)] = arrayFrom(state.referencedMap.get(key)!.keys(), relative… 731 … for (const key of arrayFrom(state.exportedModulesMap.keys()).sort(compareStringsCaseSensitive)) { 734 …(newValue === undefined) exportedModulesMap[relativeToBuildInfo(key)] = arrayFrom(state.exportedMo… 736 …else if (newValue) exportedModulesMap[relativeToBuildInfo(key)] = arrayFrom(newValue.keys(), relat… 743 …for (const key of arrayFrom(state.semanticDiagnosticsPerFile.keys()).sort(compareStringsCaseSensit…
|
D | commandLineParser.ts | 14 …export const inverseJsxOptionMap = new Map(arrayFrom(mapIterator(jsxOptionMap.entries(), ([key, va… 1260 const namesOfType = arrayFrom(opt.type.keys()).map(key => `'${key}'`).join(", "); 2097 … ...arrayFrom(optionMap.entries()).reduce((prev, cur) => ({ ...prev, [cur[0]]: cur[1] }), {}), 3150 const literalFiles = arrayFrom(literalFileMap.values()); 3151 const wildcardFiles = arrayFrom(wildcardFileMap.values()); 3153 return literalFiles.concat(wildcardFiles, arrayFrom(wildCardJsonFileMap.values()));
|
D | core.ts | 1329 …export function arrayFrom<T, U>(iterator: Iterator<T> | IterableIterator<T>, map: (t: T) => U): U[… function 1330 export function arrayFrom<T>(iterator: Iterator<T> | IterableIterator<T>): T[]; 1331 …export function arrayFrom<T, U>(iterator: Iterator<T> | IterableIterator<T>, map?: (t: T) => U): (… 1425 return arrayFrom(arrayToMultiMap(values, getGroupId).values(), resultSelector);
|
D | sourcemap.ts | 660 const mappings = arrayFrom(decoder, processMapping);
|
/third_party/typescript/src/compiler/transformers/ |
D | jsx.ts | 85 …for (const [importSource, importSpecifiersMap] of arrayFrom(currentFileState.utilizedImplicitRunti… 88 …ause(/*typeOnly*/ false, /*name*/ undefined, factory.createNamedImports(arrayFrom(importSpecifiers… 96 …factory.createObjectBindingPattern(map(arrayFrom(importSpecifiersMap.values()), s => factory.creat…
|
/third_party/typescript/src/executeCommandLine/ |
D | executeCommandLine.ts | 149 … optionsDescriptionMap.set(description, arrayFrom(typeMap.keys()).map(key => `'${key}'`)); 690 for (const key of arrayFrom(lineCounts.keys())) { 693 for (const key of arrayFrom(nodeCounts.keys())) {
|
/third_party/typescript/src/harness/ |
D | virtualFileSystemWithWatch.ts | 158 …expectedKeys.length, `${caption}: incorrect size of map: Actual keys: ${arrayFrom(map.keys())} Exp… 173 …ion, actual, isArray(expectedKeysMapOrArray) ? expectedKeysMapOrArray : arrayFrom(expectedKeys.key… 179 …ual.has(name), `${caption}: expected to contain ${name}, actual keys: ${arrayFrom(actual.keys())}`… 272 …assert.equal(mapExpected.size, 0, `Output has missing ${JSON.stringify(arrayFrom(mapExpected.keys(…
|
/third_party/typescript/src/testRunner/unittests/tsserver/ |
D | cachingFileSystemInformation.ts | 60 …&& !!result.length, `${callback} should be called with name: ${name}: ${arrayFrom(calledMap.keys()… 65 …assert.equal(calledMap.size, 0, `${callback} shouldn't be called: ${arrayFrom(calledMap.keys())}`);
|
D | dynamicFiles.ts | 3 …ilenameToScriptInfo.get(path), `Expected ${path} in :: ${JSON.stringify(arrayFrom(service.filename…
|
D | helpers.ts | 484 …checkArray("Open files", arrayFrom(projectService.openFiles.keys(), path => projectService.getScri… 488 …checkArray(`ScriptInfos files: ${additionInfo || ""}`, arrayFrom(projectService.filenameToScriptIn…
|
/third_party/typescript/src/services/codefixes/ |
D | convertToEs6Module.ts | 374 …if (!useSitesToUnqualify || !some(arrayFrom(useSitesToUnqualify.keys()), original => rangeContains… 472 …const namedBindings = namedBindingsNames.size === 0 ? undefined : arrayFrom(mapIterator(namedBindi…
|
/third_party/typescript/src/server/ |
D | editorServices.ts | 986 …openFiles: arrayFrom(this.openFiles.keys(), path => this.getScriptInfoForPath(path as Path)!.fileN… 1428 arrayFrom( 2449 …const names = arrayFrom(this.filenameToScriptInfo.entries()).map(([path, scriptInfo]) => ({ path, … 2628 …urrentDirectory, hostCurrentDirectory: this.currentDirectory, openKeys: arrayFrom(this.openFilesWi… 2629 …urrentDirectory, hostCurrentDirectory: this.currentDirectory, openKeys: arrayFrom(this.openFilesWi… 2630 …urrentDirectory, hostCurrentDirectory: this.currentDirectory, openKeys: arrayFrom(this.openFilesWi… 3295 for (const project of arrayFrom(this.configuredProjects.values())) { 3512 …this.collectChanges(knownProjects, arrayFrom(this.configuredProjects.values()), includeProjectRefe…
|
D | project.ts | 1475 …? (files: ESMap<string, boolean>) => arrayFrom(files.entries(), ([fileName, isSourceOfProjectRefer… 1479 : (files: ESMap<string, boolean>) => arrayFrom(files.keys()); 1517 … const updated: string[] = updatedFileNames ? arrayFrom(updatedFileNames.keys()) : []; constant 1947 … const resolutions = map(arrayFrom(dependencyNames.keys()), name => resolveTypeReferenceDirective(
|
/third_party/typescript/src/testRunner/unittests/tsbuild/ |
D | helpers.ts | 294 for (const outputFile of arrayFrom(sys.writtenFiles.keys())) {
|