Searched refs:containingFunction (Results 1 – 4 of 4) sorted by relevance
/third_party/typescript/src/services/codefixes/ |
D | fixAwaitInSyncFunction.ts | 42 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)
|
D | inferFromUsage.ts | 152 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/ |
D | textChanges.ts | 295 …export function isThisTypeAnnotatable(containingFunction: SignatureDeclaration): containingFunctio… 296 … return isFunctionExpression(containingFunction) || isFunctionDeclaration(containingFunction);
|
/third_party/typescript/src/services/refactors/ |
D | extractSymbol.ts | 671 const containingFunction = findAncestor(current, isFunctionLikeDeclaration); constant 672 return containingFunction 673 ? [containingFunction, containingClass]
|