Home
last modified time | relevance | path

Searched refs:arrayFrom (Results 1 – 25 of 47) sorted by relevance

12

/third_party/typescript/tests/baselines/reference/
DarrayFrom.symbols1 === 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 …]
DarrayFrom.errors.txt1 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/
DcreateSetShim.ts244 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 …]
DcreateMapShim.ts261 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 …]
DcustomTransforms.ts21 …const program = createProgram(arrayFrom(fileMap.keys()), { newLine: NewLineKind.LineFeed, ...optio…
24 for (const [file, text] of arrayFrom(outputs.entries())) {
DprogramApi.ts10 const notFound = arrayFrom(mapDefinedIterator(map.keys(), k => map.has(k) ? k : undefined));
/third_party/typescript/src/services/
DrefactorProvider.ts13 return arrayFrom(flatMapIterator(refactors.values(), refactor =>
DdocumentRegistry.ts125 …const bucketInfoArray = arrayFrom(buckets.keys()).filter(name => name && name.charAt(0) === "_").m…
244 return arrayFrom(buckets.entries(), ([key, bucket]): [string, number | undefined] => {
DcodeFixProvider.ts38 return arrayFrom(errorCodeToFixes.keys());
DdocumentHighlights.ts35 return arrayFrom(map.entries(), ([fileName, highlightSpans]) => {
/third_party/typescript/src/compiler/
DbuilderState.ts428 …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));
Dbuilder.ts723 … 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…
DcommandLineParser.ts14 …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()));
Dcore.ts1329 …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);
Dsourcemap.ts660 const mappings = arrayFrom(decoder, processMapping);
/third_party/typescript/src/compiler/transformers/
Djsx.ts85 …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/
DexecuteCommandLine.ts149 … 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/
DvirtualFileSystemWithWatch.ts158 …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/
DcachingFileSystemInformation.ts60 …&& !!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())}`);
DdynamicFiles.ts3 …ilenameToScriptInfo.get(path), `Expected ${path} in :: ${JSON.stringify(arrayFrom(service.filename…
Dhelpers.ts484 …checkArray("Open files", arrayFrom(projectService.openFiles.keys(), path => projectService.getScri…
488 …checkArray(`ScriptInfos files: ${additionInfo || ""}`, arrayFrom(projectService.filenameToScriptIn…
/third_party/typescript/src/services/codefixes/
DconvertToEs6Module.ts374 …if (!useSitesToUnqualify || !some(arrayFrom(useSitesToUnqualify.keys()), original => rangeContains…
472 …const namedBindings = namedBindingsNames.size === 0 ? undefined : arrayFrom(mapIterator(namedBindi…
/third_party/typescript/src/server/
DeditorServices.ts986 …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…
Dproject.ts1475 …? (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/
Dhelpers.ts294 for (const outputFile of arrayFrom(sys.writtenFiles.keys())) {

12