Home
last modified time | relevance | path

Searched refs:FunctionExpression (Results 1 – 25 of 90) sorted by relevance

1234

/third_party/typescript/tests/baselines/reference/
DfunctionImplementations.errors.txt5 // FunctionExpression with no return type annotation and no return statement returns void
8 …// FunctionExpression f with no return type annotation and directly references f in its body retur…
16 …// FunctionExpression f with no return type annotation and indirectly references f in its body ret…
43 // FunctionExpression with no return type annotation and returns a number
48 // FunctionExpression with no return type annotation and returns null
54 // FunctionExpression with no return type annotation and returns undefined
60 // FunctionExpression with no return type annotation and returns a type parameter type
65 … // FunctionExpression with no return type annotation and returns a constrained type parameter type
70 …// FunctionExpression with no return type annotation with multiple return statements with identica…
80 …// FunctionExpression with no return type annotation with multiple return statements with subtype …
[all …]
DfunctionImplementations.types2 // FunctionExpression with no return type annotation and no return statement returns void
8 // FunctionExpression f with no return type annotation and directly references f in its body return…
29 // FunctionExpression f with no return type annotation and indirectly references f in its body retu…
97 // FunctionExpression with no return type annotation and returns a number
108 // FunctionExpression with no return type annotation and returns null
123 // FunctionExpression with no return type annotation and returns undefined
138 // FunctionExpression with no return type annotation and returns a type parameter type
151 // FunctionExpression with no return type annotation and returns a constrained type parameter type
164 // FunctionExpression with no return type annotation with multiple return statements with identical…
182 // FunctionExpression with no return type annotation with multiple return statements with subtype r…
[all …]
DfunctionImplementations.symbols2 // FunctionExpression with no return type annotation and no return statement returns void
6 // FunctionExpression f with no return type annotation and directly references f in its body return…
24 // FunctionExpression f with no return type annotation and indirectly references f in its body retu…
83 // FunctionExpression with no return type annotation and returns a number
90 // FunctionExpression with no return type annotation and returns null
100 // FunctionExpression with no return type annotation and returns undefined
113 // FunctionExpression with no return type annotation and returns a type parameter type
125 // FunctionExpression with no return type annotation and returns a constrained type parameter type
137 // FunctionExpression with no return type annotation with multiple return statements with identical…
149 // FunctionExpression with no return type annotation with multiple return statements with subtype r…
[all …]
DfunctionImplementationErrors.errors.txt8 …// FunctionExpression with no return type annotation with multiple return statements with unrelate…
22 …// FunctionExpression with no return type annotation with return branch of number[] and other of s…
51 …// FunctionExpression with non -void return type annotation with a throw, no return, and other code
DfunctionImplementationErrors.types2 // FunctionExpression with no return type annotation with multiple return statements with unrelated…
38 // FunctionExpression with no return type annotation with return branch of number[] and other of st…
84 // FunctionExpression with non -void return type annotation with a throw, no return, and other code
DfunctionImplementationErrors.symbols2 // FunctionExpression with no return type annotation with multiple return statements with unrelated…
23 // FunctionExpression with no return type annotation with return branch of number[] and other of st…
60 // FunctionExpression with non -void return type annotation with a throw, no return, and other code
DcontextualTypingWithGenericSignature.types2 // If e is a FunctionExpression or ArrowFunctionExpression with no type parameters and no parameter…
/third_party/typescript/scripts/eslint/rules/
Donly-arrow-functions.cjs32 /** @type {(node: TSESTree.FunctionDeclaration | TSESTree.FunctionExpression) => boolean} */
47 return node.type === AST_NODE_TYPES.FunctionExpression && types.includes(parent.type);
62 /** @type {(node: TSESTree.FunctionDeclaration | TSESTree.FunctionExpression) => void} */
82 "FunctionExpression": enterFunction,
83 "FunctionExpression:exit": exitFunction,
Dno-keywords.cjs73 ….ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.T…
110 FunctionExpression: checkParams,
/third_party/typescript/src/services/refactors/
DconvertArrowFunctionOrFunctionExpression.ts33 readonly func: FunctionExpression | ArrowFunction;
167 …urceFile, typeChecker: TypeChecker, parent: Node): ArrowFunction | FunctionExpression | undefined {
192 function getVariableInfo(func: FunctionExpression | ArrowFunction): VariableInfo | undefined {
203 …tInfoForConvertToAnonymousFunction(context: RefactorContext, func: FunctionExpression | ArrowFunct…
210 …tEditInfoForConvertToNamedFunction(context: RefactorContext, func: FunctionExpression | ArrowFunct…
232 …tEditInfoForConvertToArrowFunction(context: RefactorContext, func: FunctionExpression): FileTextCh…
255 …rencedInFile(sourceFile: SourceFile, typeChecker: TypeChecker, node: FunctionExpression): boolean {
DinferFunctionReturnType.ts48 | FunctionExpression
96 case SyntaxKind.FunctionExpression:
/third_party/typescript/src/services/
DsuggestionDiagnostics.ts185 case SyntaxKind.FunctionExpression:
186 … const functionFlags = getFunctionFlags(arg as FunctionDeclaration | FunctionExpression);
215 if (node.kind === SyntaxKind.FunctionExpression) {
231 …ync(node: Node): node is FunctionDeclaration | MethodDeclaration | FunctionExpression | ArrowFunct…
235 case SyntaxKind.FunctionExpression:
DinlayHints.ts40 case SyntaxKind.FunctionExpression:
77 …otation(node: Node): node is FunctionDeclaration | ArrowFunction | FunctionExpression | MethodDecl…
229 …ationLikeForReturnType(decl: FunctionDeclaration | ArrowFunction | FunctionExpression | MethodDecl…
259 …TypeAnnotationPosition(decl: FunctionDeclaration | ArrowFunction | FunctionExpression | MethodDecl…
DnavigationBar.ts307 case SyntaxKind.FunctionExpression:
699 case SyntaxKind.FunctionExpression:
702 … return getFunctionOrClassName(node as FunctionExpression | ArrowFunction | ClassExpression);
733 case SyntaxKind.FunctionExpression:
743 … return getFunctionOrClassName(node as ArrowFunction | FunctionExpression | ClassExpression);
799 case SyntaxKind.FunctionExpression:
912 …function getFunctionOrClassName(node: FunctionExpression | FunctionDeclaration | ArrowFunction | C…
967 …function isFunctionOrClassExpression(node: Node): node is ArrowFunction | FunctionExpression | Cla…
970 case SyntaxKind.FunctionExpression:
DjsDoc.ts429 case SyntaxKind.FunctionExpression:
500 …function getRightHandSideOfAssignment(rightHandSide: Expression): FunctionExpression | ArrowFuncti…
506 case SyntaxKind.FunctionExpression:
508 return (rightHandSide as FunctionExpression);
Dclassifier2020.ts66 case SyntaxKind.FunctionExpression:
241 [SyntaxKind.FunctionExpression, TokenType.function],
/third_party/typescript/src/services/codefixes/
DfixAwaitInSyncFunction.ts29 …function getReturnType(expr: FunctionDeclaration | MethodDeclaration | FunctionExpression | ArrowF…
53 case SyntaxKind.FunctionExpression:
DconvertFunctionToEs6Class.ts183 …eFunctionLikeExpressionMember(members: ClassElement[], expression: FunctionExpression | ArrowFunct…
188 …ctionExpressionMember(members: ClassElement[], functionExpression: FunctionExpression, name: Prope…
236 …function createClassFromFunction(node: FunctionDeclaration | FunctionExpression): ClassDeclaration…
DconvertToEsModule.ts346 case SyntaxKind.FunctionExpression: {
347 const { name: expressionName } = exported as FunctionExpression;
357 …eturn functionExpressionToDeclaration(name, modifiers, exported as FunctionExpression | ArrowFunct…
545 … string | undefined, additionalModifiers: readonly Modifier[], fn: FunctionExpression | ArrowFunct…
/third_party/typescript/tests/baselines/reference/user/
Dwebpack.log7 …ring, Identifier | SimpleLiteral | RegExpLiteral | BigIntLiteral | FunctionExpression | ... 25 mor…
9 …ring, Identifier | SimpleLiteral | RegExpLiteral | BigIntLiteral | FunctionExpression | ... 25 mor…
/third_party/typescript/src/compiler/factory/
DemitHelpers.ts12 …createAsyncGeneratorHelper(generatorFunc: FunctionExpression, hasLexicalThis: boolean): Expression;
27 createGeneratorHelper(body: FunctionExpression): Expression;
159 … function createAsyncGeneratorHelper(generatorFunc: FunctionExpression, hasLexicalThis: boolean) {
323 function createGeneratorHelper(body: FunctionExpression) {
DparenthesizerRules.ts294 case SyntaxKind.FunctionExpression:
371 if (kind === SyntaxKind.FunctionExpression || kind === SyntaxKind.ArrowFunction) {
384 …= SyntaxKind.ObjectLiteralExpression || leftmostExpressionKind === SyntaxKind.FunctionExpression) {
DutilitiesPublic.ts19 || kind === SyntaxKind.FunctionExpression
/third_party/typescript/src/linter/ArkTSLinter_1_1/
DProblems.ts26 FunctionExpression, IntersectionType, enumerator
80 faultsAttrs[FaultID.FunctionExpression] = new FaultAttributes(46, true);
/third_party/typescript/src/linter/ArkTSLinter_1_0/
DProblems.ts24 ImportFromPath, FunctionExpression, IntersectionType, enumerator
77 faultsAttrs[FaultID.FunctionExpression] = { migratable: true, cookBookRef: "46", };

1234