Home
last modified time | relevance | path

Searched refs:containingFunction (Results 1 – 4 of 4) sorted by relevance

/third_party/typescript/src/services/codefixes/
DfixAwaitInSyncFunction.ts42 const containingFunction = getContainingFunction(token); constant
43 if (!containingFunction) {
48 switch (containingFunction.kind) {
50 insertBefore = containingFunction.name;
54 … insertBefore = findChildOfKind(containingFunction, SyntaxKind.FunctionKeyword, sourceFile);
57 …const kind = containingFunction.typeParameters ? SyntaxKind.LessThanToken : SyntaxKind.OpenParenTo…
58 …insertBefore = findChildOfKind(containingFunction, kind, sourceFile) || first(containingFunction.p…
66 returnType: getReturnType(containingFunction)
DinferFromUsage.ts152 const containingFunction = getContainingFunction(token); constant
153 if (containingFunction === undefined) {
161 if (isSetAccessorDeclaration(containingFunction)) {
162 …annotateSetAccessor(changes, importAdder, sourceFile, containingFunction, program, host, cancellat…
163 declaration = containingFunction;
168 if (markSeen(containingFunction)) {
170 …annotateParameters(changes, importAdder, sourceFile, param, containingFunction, program, host, can…
178 … if (isGetAccessorDeclaration(containingFunction) && isIdentifier(containingFunction.name)) {
179 …nnotate(changes, importAdder, sourceFile, containingFunction, inferTypeForVariableFromUsage(contai…
180 declaration = containingFunction;
[all …]
/third_party/typescript/src/services/
DtextChanges.ts295 …export function isThisTypeAnnotatable(containingFunction: SignatureDeclaration): containingFunctio…
296 … return isFunctionExpression(containingFunction) || isFunctionDeclaration(containingFunction);
/third_party/typescript/src/services/refactors/
DextractSymbol.ts671 const containingFunction = findAncestor(current, isFunctionLikeDeclaration); constant
672 return containingFunction
673 ? [containingFunction, containingClass]