Home
last modified time | relevance | path

Searched refs:functionDeclaration (Results 1 – 16 of 16) sorted by relevance

/third_party/typescript/src/services/refactors/
DconvertParamsToDestructuredObject.ts22 …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/
DjsDeclarationsRestArgsWithThisTypeInJSDocFunction.types6 * @param {function(this:Object, ...*):*} functionDeclaration
8 method(functionDeclaration) {}
9 >method : (functionDeclaration: (this: any, ...args: any[]) => any) => void
10 >functionDeclaration : (this: any, ...arg1: any[]) => any
DjsDeclarationsRestArgsWithThisTypeInJSDocFunction.symbols6 * @param {function(this:Object, ...*):*} functionDeclaration
8 method(functionDeclaration) {}
10 >functionDeclaration : Symbol(functionDeclaration, Decl(bug38550.js, 4, 9))
DjsDeclarationsRestArgsWithThisTypeInJSDocFunction.js6 method(functionDeclaration) {} argument
20 Clazz.prototype.method = function (functionDeclaration) { }; argument
31 method(functionDeclaration: (this: any, ...args: any[]) => any): void;
/third_party/typescript/src/services/
Dbreakpoints.ts436 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 …]
DsymbolDisplay.ts280 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 &&
DgoToDefinition.ts30 const functionDeclaration = findAncestor(node.parent, n => constant
32 …return functionDeclaration ? [createDefinitionFromSignatureDeclaration(typeChecker, functionDeclar…
Dservices.ts813 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/
DjsDeclarationsRestArgsWithThisTypeInJSDocFunction.ts11 method(functionDeclaration) {}
/third_party/skia/src/sksl/codegen/
DSkSLPipelineStageCodeGenerator.cpp75 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/
DfixAddMissingMember.ts476 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/
Des2015.ts2858 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/
Dutils.js344 functionDeclaration: property
/third_party/node/deps/v8/include/
Djs_protocol.pdl1318 string functionDeclaration
/third_party/typescript/lib/
Dtsc.js88066 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, …
DtypingsInstaller.js105313 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, …