Home
last modified time | relevance | path

Searched refs:cancellationToken (Results 1 – 25 of 64) sorted by relevance

123

/third_party/typescript/src/compiler/
Dbuilder.ts401 cancellationToken: CancellationToken | undefined,
419 cancellationToken,
459 cancellationToken,
519 cancellationToken: CancellationToken | undefined,
536 cancellationToken,
546 cancellationToken,
560 cancellationToken: CancellationToken | undefined,
580 cancellationToken,
615 cancellationToken: CancellationToken | undefined,
626 cancellationToken,
[all …]
DbuilderPublic.ts76 getOptionsDiagnostics(cancellationToken?: CancellationToken): readonly Diagnostic[];
80 getGlobalDiagnostics(cancellationToken?: CancellationToken): readonly Diagnostic[];
88 …getSyntacticDiagnostics(sourceFile?: SourceFile, cancellationToken?: CancellationToken): readonly …
92 …getDeclarationDiagnostics(sourceFile?: SourceFile, cancellationToken?: CancellationToken): readonl…
106 …getSemanticDiagnostics(sourceFile?: SourceFile, cancellationToken?: CancellationToken): readonly D…
118 …emit(targetSourceFile?: SourceFile, writeFile?: WriteFileCallback, cancellationToken?: Cancellatio…
120 … emitBuildInfo(writeFile?: WriteFileCallback, cancellationToken?: CancellationToken): EmitResult;
140 …getSemanticDiagnosticsOfNextAffectedFile(cancellationToken?: CancellationToken, ignoreSourceFile?:…
153 …emitNextAffectedFile(writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnl…
DtsbuildPublic.ts139 …build(project?: string, cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, getC…
141 …buildReferences(project: string, cancellationToken?: CancellationToken, writeFile?: WriteFileCallb…
143 …getNextInvalidatedProject(cancellationToken?: CancellationToken): InvalidatedProject<T> | undefine…
628 …function setupInitialBuild(state: SolutionBuilderState, cancellationToken: CancellationToken | und…
642 if (cancellationToken) {
643 cancellationToken.throwIfCancellationRequested();
661 …done(cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, customTransformers?: Cu…
681 getOptionsDiagnostics(cancellationToken?: CancellationToken): readonly Diagnostic[];
682 getGlobalDiagnostics(cancellationToken?: CancellationToken): readonly Diagnostic[];
684 …getSyntacticDiagnostics(sourceFile?: SourceFile, cancellationToken?: CancellationToken): readonly …
[all …]
DbuilderState.ts4cancellationToken?: CancellationToken, customTransformers?: CustomTransformers, forceDtsEmit?: boo…
6 …const { emitSkipped, diagnostics } = program.emit(sourceFile, writeFile, cancellationToken, emitOn…
328 cancellationToken: CancellationToken | undefined,
336 cancellationToken,
349 cancellationToken: CancellationToken | undefined,
358 …if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, computeHash, g…
362 …datedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken, computeHash…
377 cancellationToken: CancellationToken | undefined,
404 cancellationToken,
592 cancellationToken: CancellationToken | undefined,
[all …]
Dprogram.ts275 …on getPreEmitDiagnostics(program: Program, sourceFile?: SourceFile, cancellationToken?: Cancellati…
276 …reEmitDiagnostics(program: BuilderProgram, sourceFile?: SourceFile, cancellationToken?: Cancellati…
277 …nostics(program: Program | BuilderProgram, sourceFile?: SourceFile, cancellationToken?: Cancellati…
280 diagnostics = addRange(diagnostics, program.getOptionsDiagnostics(cancellationToken));
281 …iagnostics = addRange(diagnostics, program.getSyntacticDiagnostics(sourceFile, cancellationToken));
282 diagnostics = addRange(diagnostics, program.getGlobalDiagnostics(cancellationToken));
283 …diagnostics = addRange(diagnostics, program.getSemanticDiagnostics(sourceFile, cancellationToken));
286 …gnostics = addRange(diagnostics, program.getDeclarationDiagnostics(sourceFile, cancellationToken));
2067 …mit(sourceFile?: SourceFile, writeFileCallback?: WriteFileCallback, cancellationToken?: Cancellati…
2069 …ationToken(() => emitWorker(program, sourceFile, writeFileCallback, cancellationToken, emitOnlyDts…
[all …]
Dwatch.ts441 cancellationToken?: CancellationToken,
450 …ange(allDiagnostics, program.getSyntacticDiagnostics(/*sourceFile*/ undefined, cancellationToken));
455 addRange(allDiagnostics, program.getOptionsDiagnostics(cancellationToken));
458 addRange(allDiagnostics, program.getGlobalDiagnostics(cancellationToken));
461 …Range(allDiagnostics, program.getSemanticDiagnostics(/*sourceFile*/ undefined, cancellationToken));
469 …: program.emit(/*targetSourceFile*/ undefined, writeFile, cancellationToken, emitOnlyDtsFiles, cus…
500 cancellationToken?: CancellationToken,
510 cancellationToken,
/third_party/typescript/src/testRunner/unittests/tsserver/
DcancellationToken.ts21 const cancellationToken: server.ServerCancellationToken = { constant
32 const session = createSession(host, { cancellationToken });
70 const cancellationToken = new TestServerCancellationToken(); constant
75 cancellationToken
112 cancellationToken.setRequestToCancel(getErrId);
118 cancellationToken.resetToken();
135 cancellationToken.setRequestToCancel(getErrId);
140 cancellationToken.resetToken();
170 cancellationToken.resetToken();
217 const cancellationToken = new TestServerCancellationToken(/*cancelAfterRequest*/ 3); constant
[all …]
/third_party/typescript/src/services/codefixes/
DinferFromUsage.ts52 …const { sourceFile, program, span: { start }, errorCode, cancellationToken, host, preferences } = … constant
57 …laration = doChange(changes, sourceFile, token, errorCode, program, cancellationToken, /*markSeen*…
65 const { sourceFile, program, cancellationToken, host, preferences } = context; constant
68 …ceFile, getTokenAtPosition(err.file, err.start), err.code, program, cancellationToken, markSeen, h…
111 …File: SourceFile, token: Node, errorCode: number, program: Program, cancellationToken: Cancellatio…
124 …ateVariableDeclaration(changes, importAdder, sourceFile, parent, program, host, cancellationToken);
129 … const type = inferTypeForVariableFromUsage(parent.name, program, cancellationToken);
144 …rceFileOfNode(symbol.valueDeclaration), symbol.valueDeclaration, program, host, cancellationToken);
162 …etAccessor(changes, importAdder, sourceFile, containingFunction, program, host, cancellationToken);
170 …ers(changes, importAdder, sourceFile, param, containingFunction, program, host, cancellationToken);
[all …]
DaddMissingAwait.ts34 const { sourceFile, errorCode, span, cancellationToken, program } = context; constant
35 … expression = getAwaitErrorSpanExpression(sourceFile, errorCode, span, cancellationToken, program);
47 const { sourceFile, program, cancellationToken } = context; constant
51 …= getAwaitErrorSpanExpression(sourceFile, diagnostic.code, diagnostic, cancellationToken, program);
62 …pression(sourceFile: SourceFile, errorCode: number, span: TextSpan, cancellationToken: Cancellatio…
65 && isMissingAwaitError(sourceFile, errorCode, span, cancellationToken, program)
70 const { sourceFile, program, cancellationToken } = context; constant
71 …bleInitializers = findAwaitableInitializers(expression, sourceFile, cancellationToken, program, ch…
95 …aitError(sourceFile: SourceFile, errorCode: number, span: TextSpan, cancellationToken: Cancellatio…
97 const diagnostics = checker.getDiagnostics(sourceFile, cancellationToken);
[all …]
DfixUnusedIdentifier.ts21 const { errorCode, sourceFile, program, cancellationToken } = context; constant
39 …eteDeclaration(sourceFile, token, t, checker, sourceFiles, program, cancellationToken, /*isFixAll*…
78 …eteDeclaration(sourceFile, token, t, checker, sourceFiles, program, cancellationToken, /*isFixAll*…
94 const { sourceFile, program, cancellationToken } = context; constant
109 …laration(sourceFile, token, changes, checker, sourceFiles, program, cancellationToken, /*isFixAll*…
138 …laration(sourceFile, token, changes, checker, sourceFiles, program, cancellationToken, /*isFixAll*…
223 … TypeChecker, sourceFiles: readonly SourceFile[], program: Program, cancellationToken: Cancellatio…
224 …tionWorker(token, changes, sourceFile, checker, sourceFiles, program, cancellationToken, isFixAll);
235 … TypeChecker, sourceFiles: readonly SourceFile[], program: Program, cancellationToken: Cancellatio…
238 …Parameter(changes, sourceFile, parent, checker, sourceFiles, program, cancellationToken, isFixAll);
[all …]
DimportFixes.ts35 const { sourceFile, program, preferences, host, cancellationToken } = context; constant
36 …rWorker(sourceFile, program, /*useAutoImportProvider*/ true, preferences, host, cancellationToken);
52 …: Program, preferences: UserPreferences, host: LanguageServiceHost, cancellationToken?: Cancellati…
53 …Worker(sourceFile, program, /*useAutoImportProvider*/ false, preferences, host, cancellationToken);
62 …: boolean, preferences: UserPreferences, host: LanguageServiceHost, cancellationToken: Cancellatio…
86 …ceFile, symbol, symbolName, /*isJsxTagName*/ false, program, host, preferences, cancellationToken);
348 cancellationToken: CancellationToken,
354 …sourceFile, targetSymbol, symbolName, isJsxTagName, program, host, preferences, cancellationToken);
390 …: Program, host: LanguageServiceHost, preferences: UserPreferences, cancellationToken: Cancellatio…
392 return getExportInfoMap(importingFile, host, program, preferences, cancellationToken)
[all …]
/third_party/typescript/src/services/
DoutliningElementsCollector.ts3 …export function collectElements(sourceFile: SourceFile, cancellationToken: CancellationToken): Out…
5 addNodeOutliningSpans(sourceFile, cancellationToken, res);
10 …function addNodeOutliningSpans(sourceFile: SourceFile, cancellationToken: CancellationToken, out: …
24 … addOutliningForLeadingCommentsForNode(statements[current], sourceFile, cancellationToken, out);
35 cancellationToken.throwIfCancellationRequested();
38 addOutliningForLeadingCommentsForNode(n, sourceFile, cancellationToken, out);
42 … addOutliningForLeadingCommentsForNode(n.parent.left, sourceFile, cancellationToken, out);
46 … addOutliningForLeadingCommentsForPos(n.statements.end, sourceFile, cancellationToken, out);
50 … addOutliningForLeadingCommentsForPos(n.members.end, sourceFile, cancellationToken, out);
117 …liningForLeadingCommentsForPos(pos: number, sourceFile: SourceFile, cancellationToken: Cancellatio…
[all …]
Dclassifier2020.ts18 …export function getSemanticClassifications(program: Program, cancellationToken: CancellationToken,…
19 …const classifications = getEncodedSemanticClassifications(program, cancellationToken, sourceFile, …
34 …export function getEncodedSemanticClassifications(program: Program, cancellationToken: Cancellatio…
36 spans: getSemanticTokens(program, sourceFile, span, cancellationToken),
41 …ticTokens(program: Program, sourceFile: SourceFile, span: TextSpan, cancellationToken: Cancellatio…
49 collectTokens(program, sourceFile, span, collector, cancellationToken);
54 …or: (node: Node, tokenType: number, tokenModifier: number) => void, cancellationToken: Cancellatio…
68 cancellationToken.throwIfCancellationRequested();
DfindAllReferences.ts207 …export function findReferencedSymbols(program: Program, cancellationToken: CancellationToken, sour…
210 …Core.getReferencedSymbolsForNode(position, node, program, sourceFiles, cancellationToken, options);
218 …definition: checker.runWithCancellationToken(cancellationToken, checker => definitionToReferencedS…
230 …export function getImplementationsAtPosition(program: Program, cancellationToken: CancellationToke…
233 …const entries = getImplementationReferenceEntries(program, cancellationToken, sourceFiles, node, p…
252 …const entries = getImplementationReferenceEntries(program, cancellationToken, sourceFiles, entry.n…
262 …function getImplementationReferenceEntries(program: Program, cancellationToken: CancellationToken,…
283 …rn getReferenceEntriesForNode(position, node, program, sourceFiles, cancellationToken, { implement…
288 …program: Program, cancellationToken: CancellationToken, sourceFiles: readonly SourceFile[], node: …
291 …e.getReferencedSymbolsForNode(position, node, program, sourceFiles, cancellationToken, options)), …
[all …]
DcodeFixProvider.ts89 function getDiagnostics({ program, sourceFile, cancellationToken }: CodeFixContextBase) {
91 ...program.getSemanticDiagnostics(sourceFile, cancellationToken),
92 ...program.getSyntacticDiagnostics(sourceFile, cancellationToken),
93 ...computeSuggestionDiagnostics(sourceFile, program, cancellationToken)
Dservices.ts1139 constructor(private cancellationToken: HostCancellationToken) { property in CancellationTokenObject
1143 return this.cancellationToken.isCancellationRequested();
1248 const cancellationToken = host.getCancellationToken constant
1328 getCancellationToken: () => cancellationToken,
1651 … return program.getSyntacticDiagnostics(getValidSourceFile(fileName), cancellationToken).slice();
1666 … const semanticDiagnostics = program.getSemanticDiagnostics(targetSourceFile, cancellationToken);
1672 …st declarationDiagnostics = program.getDeclarationDiagnostics(targetSourceFile, cancellationToken);
1678 … return computeSuggestionDiagnostics(getValidSourceFile(fileName), program, cancellationToken);
1683 …return [...program.getOptionsDiagnostics(cancellationToken), ...program.getGlobalDiagnostics(cance…
1703 cancellationToken,
[all …]
DimportTracker.ts15 …eFile[], sourceFilesSet: ReadonlySet<string>, checker: TypeChecker, cancellationToken: Cancellatio…
16 const allDirectImports = getDirectImportsMap(sourceFiles, checker, cancellationToken);
18 …rsForExport(sourceFiles, sourceFilesSet, allDirectImports, exportInfo, checker, cancellationToken);
46 cancellationToken: CancellationToken | undefined,
85 if (cancellationToken) cancellationToken.throwIfCancellationRequested();
388 …mportsMap(sourceFiles: readonly SourceFile[], checker: TypeChecker, cancellationToken: Cancellatio…
392 if (cancellationToken) cancellationToken.throwIfCancellationRequested();
DrefactorProvider.ts14 context.cancellationToken && context.cancellationToken.isCancellationRequested() ||
Dclassifier.ts457 …export function getSemanticClassifications(typeChecker: TypeChecker, cancellationToken: Cancellati…
458 …assificationsToSpans(getEncodedSemanticClassifications(typeChecker, cancellationToken, sourceFile,…
461 …function checkForClassificationCancellation(cancellationToken: CancellationToken, kind: SyntaxKind…
480 cancellationToken.throwIfCancellationRequested();
485 …export function getEncodedSemanticClassifications(typeChecker: TypeChecker, cancellationToken: Can…
493 checkForClassificationCancellation(cancellationToken, node.kind);
600 …export function getSyntacticClassifications(cancellationToken: CancellationToken, sourceFile: Sour…
601 …return convertClassificationsToSpans(getEncodedSyntacticClassifications(cancellationToken, sourceF…
605 …export function getEncodedSyntacticClassifications(cancellationToken: CancellationToken, sourceFil…
1096 checkForClassificationCancellation(cancellationToken, element.kind);
/third_party/typescript/src/tsserver/
Dserver.ts28 cancellationToken: ServerCancellationToken; property
31 …startSession: (option: StartSessionOptions, logger: Logger, cancellationToken: ServerCancellationT…
33 …function start({ args, logger, cancellationToken, serverMode, unknownServerMode, startSession: sta…
73 cancellationToken
DwebServer.ts57 cancellationToken: nullCancellationToken,
115 …function startWebSession(options: StartSessionOptions, logger: Logger, cancellationToken: ServerCa…
118 … super(sys as ServerHost, { writeMessage }, options, logger, cancellationToken, hrtime);
/third_party/typescript/src/harness/
DharnessLanguageService.ts132 constructor(protected cancellationToken = DefaultHostCancellationToken.instance, property in Harness.LanguageService.LanguageServiceAdapterHost
262 getCancellationToken() { return this.cancellationToken; }
319 constructor(cancellationToken?: ts.HostCancellationToken, options?: ts.CompilerOptions) {
320 this.host = new NativeLanguageServiceHost(cancellationToken, options);
335 …constructor(preprocessToResolve: boolean, cancellationToken?: ts.HostCancellationToken, options?: …
336 super(cancellationToken, options);
337 this.nativeHost = new NativeLanguageServiceHost(cancellationToken, options);
672 …constructor(preprocessToResolve: boolean, cancellationToken?: ts.HostCancellationToken, options?: …
673 … this.host = new ShimLanguageServiceHost(preprocessToResolve, cancellationToken, options);
728 …constructor(cancellationToken: ts.HostCancellationToken | undefined, settings: ts.CompilerOptions …
[all …]
/third_party/typescript/src/services/refactors/
DconvertExport.ts45 …er.with(context, t => doChange(context.file, context.program, info, t, context.cancellationToken));
117 …ram: Program, info: ExportInfo, changes: textChanges.ChangeTracker, cancellationToken: Cancellatio…
119 changeImports(program, info, changes, cancellationToken);
163 …tingModuleSymbol }: ExportInfo, changes: textChanges.ChangeTracker, cancellationToken: Cancellatio…
166 …erences.Core.eachExportReference(program.getSourceFiles(), checker, cancellationToken, exportSymbo…
/third_party/typescript/src/testRunner/unittests/tsc/
DcancellationToken.ts58 const cancellationToken: CancellationToken = { constant
84 builderProgram.getSemanticDiagnosticsOfNextAffectedFile(cancellationToken);
/third_party/typescript/src/testRunner/unittests/
Dbuilder.ts92 const cancellationToken: CancellationToken = { constant
112 …uilderProgram.emitNextAffectedFile(fileName => outputFileNames.push(fileName), cancellationToken));

123