Home
last modified time | relevance | path

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

1234

/third_party/typescript/tests/baselines/reference/
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.txt7 …// FunctionExpression with no return type annotation with multiple return statements with unrelate…
21 …// FunctionExpression with no return type annotation with return branch of number[] and other of s…
50 …// 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…
DcontextualTypingWithGenericSignature.symbols2 // If e is a FunctionExpression or ArrowFunctionExpression with no type parameters and no parameter…
/third_party/typescript/src/services/refactors/
DconvertArrowFunctionOrFunctionExpression.ts33 readonly func: FunctionExpression | ArrowFunction;
166 …urceFile, typeChecker: TypeChecker, parent: Node): ArrowFunction | FunctionExpression | undefined {
187 function getVariableInfo(func: FunctionExpression | ArrowFunction): VariableInfo | undefined {
198 …tInfoForConvertToAnonymousFunction(context: RefactorContext, func: FunctionExpression | ArrowFunct…
205 …tEditInfoForConvertToNamedFunction(context: RefactorContext, func: FunctionExpression | ArrowFunct…
224 …tEditInfoForConvertToArrowFunction(context: RefactorContext, func: FunctionExpression): FileTextCh…
247 …rencedInFile(sourceFile: SourceFile, typeChecker: TypeChecker, node: FunctionExpression): boolean {
DinferFunctionReturnType.ts49 | FunctionExpression
82 case SyntaxKind.FunctionExpression:
/third_party/typescript/scripts/eslint/rules/
Donly-arrow-functions.ts38 … const isThisParameter = (node: TSESTree.FunctionDeclaration | TSESTree.FunctionExpression) => (
53 return node.type === AST_NODE_TYPES.FunctionExpression && types.includes(parent.type);
67 const exitFunction = (node: TSESTree.FunctionDeclaration | TSESTree.FunctionExpression) => {
Dno-keywords.ts74 | TSESTree.FunctionExpression
113 FunctionExpression: checkParams,
/third_party/typescript/src/services/
DnavigationBar.ts292 case SyntaxKind.FunctionExpression:
683 case SyntaxKind.FunctionExpression:
686 … return getFunctionOrClassName(<FunctionExpression | ArrowFunction | ClassExpression>node);
717 case SyntaxKind.FunctionExpression:
727 … return getFunctionOrClassName(<ArrowFunction | FunctionExpression | ClassExpression>node);
783 case SyntaxKind.FunctionExpression:
892 …function getFunctionOrClassName(node: FunctionExpression | FunctionDeclaration | ArrowFunction | C…
947 …function isFunctionOrClassExpression(node: Node): node is ArrowFunction | FunctionExpression | Cla…
950 case SyntaxKind.FunctionExpression:
DjsDoc.ts334 case SyntaxKind.FunctionExpression:
399 …function getRightHandSideOfAssignment(rightHandSide: Expression): FunctionExpression | ArrowFuncti…
405 case SyntaxKind.FunctionExpression:
407 return (<FunctionExpression>rightHandSide);
DsuggestionDiagnostics.ts177 case SyntaxKind.FunctionExpression:
202 if (node.kind === SyntaxKind.FunctionExpression) {
Dclassifier2020.ts66 case SyntaxKind.FunctionExpression:
241 [SyntaxKind.FunctionExpression, TokenType.function],
DcallHierarchy.ts5 | FunctionExpression & { name: Identifier }
15 … | FunctionExpression & { name: undefined, parent: VariableDeclaration & { name: Identifier } }
488 case SyntaxKind.FunctionExpression:
/third_party/typescript/src/services/codefixes/
DfixAwaitInSyncFunction.ts28 …function getReturnType(expr: FunctionDeclaration | MethodDeclaration | FunctionExpression | ArrowF…
52 case SyntaxKind.FunctionExpression:
DconvertToEs6Module.ts346 case SyntaxKind.FunctionExpression: {
347 const { name: expressionName } = exported as FunctionExpression;
357 …eturn functionExpressionToDeclaration(name, modifiers, exported as FunctionExpression | ArrowFunct…
537 … string | undefined, additionalModifiers: readonly Modifier[], fn: FunctionExpression | ArrowFunct…
DconvertFunctionToEs6Class.ts175 …LikeExpressionMember(members: readonly ClassElement[], expression: FunctionExpression | ArrowFunct…
180 …essionMember(members: readonly ClassElement[], functionExpression: FunctionExpression, name: Prope…
/third_party/typescript/src/compiler/factory/
DemitHelpers.ts12 …createAsyncGeneratorHelper(generatorFunc: FunctionExpression, hasLexicalThis: boolean): Expression;
27 createGeneratorHelper(body: FunctionExpression): Expression;
154 … function createAsyncGeneratorHelper(generatorFunc: FunctionExpression, hasLexicalThis: boolean) {
318 function createGeneratorHelper(body: FunctionExpression) {
DparenthesizerRules.ts258 case SyntaxKind.FunctionExpression:
334 if (kind === SyntaxKind.FunctionExpression || kind === SyntaxKind.ArrowFunction) {
347 …= SyntaxKind.ObjectLiteralExpression || leftmostExpressionKind === SyntaxKind.FunctionExpression) {
/third_party/typescript/src/compiler/
DvisitorPublic.ts668 case SyntaxKind.FunctionExpression:
669 return factory.updateFunctionExpression(<FunctionExpression>node,
670 nodesVisitor((<FunctionExpression>node).modifiers, visitor, isModifier),
671 nodeVisitor((<FunctionExpression>node).asteriskToken, tokenVisitor, isToken),
672 nodeVisitor((<FunctionExpression>node).name, visitor, isIdentifier),
673 … nodesVisitor((<FunctionExpression>node).typeParameters, visitor, isTypeParameterDeclaration),
674 … visitParameterList((<FunctionExpression>node).parameters, visitor, context, nodesVisitor),
675 nodeVisitor((<FunctionExpression>node).type, visitor, isTypeNode),
676 … visitFunctionBody((<FunctionExpression>node).body, visitor, context, nodeVisitor));
883 … visitFunctionBody((<FunctionExpression>node).body, visitor, context, nodeVisitor));
/third_party/typescript/src/linter/
DProblems.ts23 ImportFromPath, FunctionExpression, IntersectionType, enumerator
76 faultsAttrs[FaultID.FunctionExpression] = { migratable: true, cookBookRef: "46", };
/third_party/typescript/src/compiler/transformers/
Des2017.ts124 case SyntaxKind.FunctionExpression:
125 …lags.NonTopLevel | ContextFlags.HasLexicalThis, visitFunctionExpression, <FunctionExpression>node);
338 function visitFunctionExpression(node: FunctionExpression): Expression {
451 …e: MethodDeclaration | AccessorDeclaration | FunctionDeclaration | FunctionExpression): FunctionBo…
Des2018.ts227 case SyntaxKind.FunctionExpression:
230 node as FunctionExpression,
916 function visitFunctionExpression(node: FunctionExpression) {
939 …e: MethodDeclaration | AccessorDeclaration | FunctionDeclaration | FunctionExpression): FunctionBo…
999 …function transformFunctionBody(node: FunctionDeclaration | FunctionExpression | ConstructorDeclara…

1234