/third_party/typescript/src/services/refactors/ |
D | convertParamsToDestructuredObject.ts | 22 …const functionDeclaration = getFunctionDeclarationAtPosition(file, startPosition, context.program.… constant 23 if (!functionDeclaration) return emptyArray; 35 …const functionDeclaration = getFunctionDeclarationAtPosition(file, startPosition, program.getTypeC… constant 36 if (!functionDeclaration || !cancellationToken) return undefined; 38 … const groupedReferences = getGroupedReferences(functionDeclaration, program, cancellationToken); 40 ….ChangeTracker.with(context, t => doChange(file, program, host, t, functionDeclaration, groupedRef… 52 functionDeclaration: ValidFunctionDeclaration, 55 …const newFunctionDeclarationParams = map(createNewParameters(functionDeclaration, program, host), … 61 replaceParameters(functionDeclaration, newFunctionDeclarationParams); 66 …const newArgument = getSynthesizedDeepClone(createNewArgument(functionDeclaration, call.arguments)… [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | jsDeclarationsRestArgsWithThisTypeInJSDocFunction.types | 6 * @param {function(this:Object, ...*):*} functionDeclaration 8 method(functionDeclaration) {} 9 >method : (functionDeclaration: (this: any, ...args: any[]) => any) => void 10 >functionDeclaration : (this: any, ...arg1: any[]) => any
|
D | jsDeclarationsRestArgsWithThisTypeInJSDocFunction.symbols | 6 * @param {function(this:Object, ...*):*} functionDeclaration 8 method(functionDeclaration) {} 10 >functionDeclaration : Symbol(functionDeclaration, Decl(bug38550.js, 4, 9))
|
D | jsDeclarationsRestArgsWithThisTypeInJSDocFunction.js | 6 method(functionDeclaration) {} argument 20 Clazz.prototype.method = function (functionDeclaration) { }; argument 31 method(functionDeclaration: (this: any, ...args: any[]) => any): void;
|
/third_party/typescript/src/services/ |
D | breakpoints.ts | 436 const functionDeclaration = parameter.parent as FunctionLikeDeclaration; constant 437 const indexOfParameter = functionDeclaration.parameters.indexOf(parameter); 441 … return spanInParameterDeclaration(functionDeclaration.parameters[indexOfParameter - 1]); 445 return spanInNode(functionDeclaration.body); 450 … function canFunctionHaveSpanInWholeDeclaration(functionDeclaration: FunctionLikeDeclaration) { 451 return hasSyntacticModifier(functionDeclaration, ModifierFlags.Export) || 452 …(functionDeclaration.parent.kind === SyntaxKind.ClassDeclaration && functionDeclaration.kind !== S… 455 …function spanInFunctionDeclaration(functionDeclaration: FunctionLikeDeclaration): TextSpan | undef… 457 if (!functionDeclaration.body) { 461 if (canFunctionHaveSpanInWholeDeclaration(functionDeclaration)) { [all …]
|
D | symbolDisplay.ts | 280 const functionDeclaration = location.parent as SignatureDeclaration; constant 283 … (location.kind === SyntaxKind.ConstructorKeyword ? functionDeclaration.parent : functionDeclarati… 286 …const allSignatures = functionDeclaration.kind === SyntaxKind.Constructor ? type.getNonNullableTyp… 287 if (!typeChecker.isImplementationOfOverload(functionDeclaration)) { 288 … signature = typeChecker.getSignatureFromDeclaration(functionDeclaration); // TODO: GH#18217 294 if (functionDeclaration.kind === SyntaxKind.Constructor) { 301 … addPrefixForAnyFunctionOrVar(functionDeclaration.kind === SyntaxKind.CallSignature &&
|
D | goToDefinition.ts | 30 const functionDeclaration = findAncestor(node.parent, n => constant 32 …return functionDeclaration ? [createDefinitionFromSignatureDeclaration(typeChecker, functionDeclar…
|
D | services.ts | 813 const functionDeclaration = node as FunctionLikeDeclaration; constant 814 const declarationName = getDeclarationName(functionDeclaration); 821 …if (lastDeclaration && functionDeclaration.parent === lastDeclaration.parent && functionDeclaratio… 824 … if (functionDeclaration.body && !(lastDeclaration as FunctionLikeDeclaration).body) { 825 declarations[declarations.length - 1] = functionDeclaration; 829 declarations.push(functionDeclaration);
|
/third_party/typescript/tests/cases/conformance/jsdoc/declarations/ |
D | jsDeclarationsRestArgsWithThisTypeInJSDocFunction.ts | 11 method(functionDeclaration) {}
|
/third_party/skia/src/sksl/codegen/ |
D | SkSLPipelineStageCodeGenerator.cpp | 75 String functionDeclaration(const FunctionDeclaration& decl); 343 fCallbacks->defineFunction(this->functionDeclaration(decl).c_str(), in writeFunction() 348 String PipelineStageCodeGenerator::functionDeclaration(const FunctionDeclaration& decl) { in functionDeclaration() function in SkSL::PipelineStage::PipelineStageCodeGenerator 370 fCallbacks->declareFunction(this->functionDeclaration(decl).c_str()); in writeFunctionDeclaration()
|
/third_party/typescript/src/services/codefixes/ |
D | fixAddMissingMember.ts | 476 const functionDeclaration = info.kind === InfoKind.Function constant 479 if (functionDeclaration === undefined) { 484 …? changes.insertNodeBefore(info.sourceFile, info.parentDeclaration, functionDeclaration, /*blankLi… 485 … : changes.insertNodeAtEndOfScope(info.sourceFile, info.parentDeclaration, functionDeclaration);
|
/third_party/typescript/src/compiler/transformers/ |
D | es2015.ts | 2858 if (initializerFunction) statements.push(initializerFunction.functionDeclaration); 2859 if (bodyFunction) statements.push(bodyFunction.functionDeclaration); 3078 functionDeclaration: Statement; property 3126 const functionDeclaration = factory.createVariableStatement( constant 3157 return { functionName, containsYield, functionDeclaration, part }; 3269 const functionDeclaration = constant 3299 return { functionName, containsYield, functionDeclaration, part };
|
/third_party/node/lib/internal/repl/ |
D | utils.js | 344 functionDeclaration: property
|
/third_party/node/deps/v8/include/ |
D | js_protocol.pdl | 1318 string functionDeclaration
|
/third_party/typescript/lib/ |
D | tsc.js | 88066 statements.push(initializerFunction.functionDeclaration); 88068 statements.push(bodyFunction.functionDeclaration); 88219 …var functionDeclaration = factory.createVariableStatement(undefined, ts.setEmitFlags(factory.creat… 88223 …nctionName: functionName, containsYield: containsYield, functionDeclaration: functionDeclaration, … 88260 …var functionDeclaration = factory.createVariableStatement(undefined, ts.setEmitFlags(factory.creat… 88264 …nctionName: functionName, containsYield: containsYield, functionDeclaration: functionDeclaration, …
|
D | typingsInstaller.js | 105313 statements.push(initializerFunction.functionDeclaration); 105315 statements.push(bodyFunction.functionDeclaration); 105523 var functionDeclaration = factory.createVariableStatement( 105535 …nctionName: functionName, containsYield: containsYield, functionDeclaration: functionDeclaration, … 105629 var functionDeclaration = factory.createVariableStatement( 105640 …nctionName: functionName, containsYield: containsYield, functionDeclaration: functionDeclaration, …
|