Home
last modified time | relevance | path

Searched refs:arrayFrom (Results 1 – 25 of 44) 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/
DcompilerCore.ts136 actual = arrayFrom(set.keys());
140 actual = arrayFrom(set.values());
144 const actualTuple = arrayFrom(set.entries());
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.ts162 …const bucketInfoArray = arrayFrom(buckets.keys()).filter(name => name && name.charAt(0) === "_").m…
357 return arrayFrom(buckets.entries(), ([key, bucket]): [string, number | undefined] => {
DcodeFixProvider.ts35 return arrayFrom(errorCodeToFixes.keys());
DstringCompletions.ts401 …return arrayFrom(getCompletionEntriesForDirectoryFragment(literalValue, scriptDirectory, extension…
446 …return flatMap(baseDirectories, baseDirectory => arrayFrom(getCompletionEntriesForDirectoryFragmen…
729 return arrayFrom(result.values());
886 … return addReplacementSpans(toComplete, range.pos + prefix.length, arrayFrom(names.values()));
/third_party/typescript/src/compiler/
DbuilderState.ts493 …return arrayFrom(mapDefinedIterator(seenMap.keys(), path => programOfThisState.getSourceFileByPath…
512 return keys ? arrayFrom(keys.keys()) : [];
625 return arrayFrom(mapDefinedIterator(seenFileNamesMap.values(), value => value));
Dbuilder.ts856 …const fileInfos = arrayFrom(state.fileInfos.entries(), ([key, value]): ProgramBuildInfoFileInfo =>…
889 …referencedMap = arrayFrom(state.referencedMap.keys()).sort(compareStringsCaseSensitive).map(key =>…
897 …exportedModulesMap = mapDefined(arrayFrom(state.exportedModulesMap.keys()).sort(compareStringsCase…
908 …for (const key of arrayFrom(state.semanticDiagnosticsPerFile.keys()).sort(compareStringsCaseSensit…
933 … for (const path of arrayFrom(state.changedFilesSet.keys()).sort(compareStringsCaseSensitive)) {
971 const fileIds = arrayFrom(set.keys(), toFileId).sort(compareValues);
DcommandLineParser.ts18 …export const inverseJsxOptionMap = new Map(arrayFrom(mapIterator(jsxOptionMap.entries(), ([key, va…
1566 const namesOfType = arrayFrom(opt.type.keys()).map(key => `'${key}'`).join(", ");
2446 … ...arrayFrom(optionMap.entries()).reduce((prev, cur) => ({ ...prev, [cur[0]]: cur[1] }), {}),
3512 const literalFiles = arrayFrom(literalFileMap.values());
3513 const wildcardFiles = arrayFrom(wildcardFileMap.values());
3515 return literalFiles.concat(wildcardFiles, arrayFrom(wildCardJsonFileMap.values()));
Dcore.ts1304 …export function arrayFrom<T, U>(iterator: Iterator<T> | IterableIterator<T>, map: (t: T) => U): U[… function
1305 export function arrayFrom<T>(iterator: Iterator<T> | IterableIterator<T>): T[];
1306 …export function arrayFrom<T, U>(iterator: Iterator<T> | IterableIterator<T>, map?: (t: T) => U): (…
1400 return arrayFrom(arrayToMultiMap(values, getGroupId).values(), resultSelector);
1669 for (const elements of arrayFrom(multiMap.values())) {
/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/testRunner/unittests/tscWatch/
Dincremental.ts186 assert.equal(arrayFrom(state.referencedMap!.keys()).length, 0);
187 assert.equal(arrayFrom(state.exportedModulesMap!.keys()).length, 0);
/third_party/typescript/src/harness/
DvirtualFileSystemWithWatch.ts157 …expectedKeys.length, `${caption}: incorrect size of map: Actual keys: ${arrayFrom(map.keys())} Exp…
172 …ion, actual, isArray(expectedKeysMapOrArray) ? expectedKeysMapOrArray : arrayFrom(expectedKeys.key…
178 …ual.has(name), `${caption}: expected to contain ${name}, actual keys: ${arrayFrom(actual.keys())}`…
207 …assert.equal(mapExpected.size, 0, `Output has missing ${JSON.stringify(arrayFrom(mapExpected.keys(…
/third_party/typescript/src/services/codefixes/
DfixAddMissingMember.ts187 …const properties = arrayFrom(checker.getUnmatchedProperties(checker.getTypeAtLocation(parent), che…
195 …const properties = arrayFrom(checker.getUnmatchedProperties(checker.getTypeAtLocation(parent.initi…
544 …const enumMember = type.symbol.exports ? firstOrUndefined(arrayFrom(type.symbol.exports.values()))…
DconvertToEsModule.ts374 …if (!useSitesToUnqualify || !some(arrayFrom(useSitesToUnqualify.keys()), original => rangeContains…
480 …const namedBindings = namedBindingsNames.size === 0 ? undefined : arrayFrom(mapIterator(namedBindi…
Dhelpers.ts411 arrayFrom(usedNames.values()),
513 … return { argumentTypeNodes, argumentTypeParameters: arrayFrom(argumentTypeParameters.entries()) };
DimportFixes.ts213arrayFrom(namedImports.entries(), ([name, addAsTypeOnly]) => ({ addAsTypeOnly, name })),
225 …namedImports && arrayFrom(namedImports.entries(), ([name, addAsTypeOnly]) => ({ addAsTypeOnly, nam…
912 const fixes = arrayFrom(flatMapIterator(exportInfo.entries(), ([_, exportInfos]) =>
/third_party/typescript/src/server/
DeditorServices.ts1030 …openFiles: arrayFrom(this.openFiles.keys(), path => this.getScriptInfoForPath(path as Path)!.fileN…
1460 arrayFrom(
2594 …const names = arrayFrom(this.filenameToScriptInfo.entries()).map(([path, scriptInfo]) => ({ path, …
2801 …urrentDirectory, hostCurrentDirectory: this.currentDirectory, openKeys: arrayFrom(this.openFilesWi…
2802 …urrentDirectory, hostCurrentDirectory: this.currentDirectory, openKeys: arrayFrom(this.openFilesWi…
2803 …urrentDirectory, hostCurrentDirectory: this.currentDirectory, openKeys: arrayFrom(this.openFilesWi…
3486 for (const project of arrayFrom(this.configuredProjects.values())) {
3703 …this.collectChanges(knownProjects, arrayFrom(this.configuredProjects.values()), includeProjectRefe…
4148 const entries = arrayFrom(this.pendingPluginEnablements.entries());
Dproject.ts1562 …? (files: ESMap<string, boolean>) => arrayFrom(files.entries(), ([fileName, isSourceOfProjectRefer…
1566 : (files: ESMap<string, boolean>) => arrayFrom(files.keys());
1604 … const updated: string[] = updatedFileNames ? arrayFrom(updatedFileNames.keys()) : []; constant
2181 for (const name of arrayFrom(dependencyNames.keys())) {
/third_party/typescript/src/testRunner/unittests/tsserver/
DdynamicFiles.ts3 …ilenameToScriptInfo.get(path), `Expected ${path} in :: ${JSON.stringify(arrayFrom(service.filename…
/third_party/typescript/src/services/refactors/
DconvertImport.ts215 … const newNamedImports: ImportSpecifier[] = arrayFrom(neededNamedImports.values()).map(element =>
/third_party/typescript/src/executeCommandLine/
DexecuteCommandLine.ts216 ? arrayFrom(type.entries())
1053 for (const key of arrayFrom(lineCounts.keys())) {

12