Home
last modified time | relevance | path

Searched refs:superCall (Results 1 – 7 of 7) sorted by relevance

/third_party/typescript/src/services/codefixes/
DfixClassSuperMustPrecedeThisAccess.ts11 const { constructor, superCall } = nodes; constant
12 …es = textChanges.ChangeTracker.with(context, t => doChange(t, sourceFile, constructor, superCall));
22 const { constructor, superCall } = nodes; constant
24 doChange(changes, sourceFile, constructor, superCall);
30 …geTracker, sourceFile: SourceFile, constructor: ConstructorDeclaration, superCall: ExpressionState…
31 changes.insertNodeAtConstructorStart(sourceFile, constructor, superCall);
32 changes.delete(sourceFile, superCall);
35 … pos: number): { readonly constructor: ConstructorDeclaration, readonly superCall: ExpressionState…
39 const superCall = findSuperCall(constructor.body!); constant
42 …urn superCall && !superCall.expression.arguments.some(arg => isPropertyAccessExpression(arg) && ar…
DfixConstructorForDerivedNeedSuperCall.ts25 …const superCall = factory.createExpressionStatement(factory.createCallExpression(factory.createSup… constant
26 changes.insertNodeAtConstructorStart(sourceFile, ctr, superCall);
/third_party/typescript/src/compiler/transformers/
Des2015.ts1027 …const { superCall, superStatementIndex } = findSuperCallAndStatementIndex(constructor.body.stateme… constant
1042 else if (superCall) {
1043 superCallExpression = visitSuperCallInBody(superCall);
1081 … const superCall = cast(cast(superCallExpression, isBinaryExpression).left, isCallExpression); constant
1083 setCommentRange(returnStatement, getCommentRange(superCall));
1084 setEmitFlags(superCall, EmitFlags.NoComments);
1168 const superCall = getSuperCallFromStatement(originalBodyStatements[i]); constant
1169 if (superCall) {
1172 superCall,
/third_party/typescript/src/testRunner/unittests/services/
DtextChanges.ts333 const superCall = factory.createCallExpression( constant
338 return factory.createExpressionStatement(superCall);
/third_party/typescript/src/compiler/
Dchecker.ts36654 const superCall = findFirstSuperCall(node.body!); constant
36655 if (superCall) {
36657 …error(superCall, Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null…
36673 if (!superCallIsRootLevelInConstructor(superCall, node.body!)) {
36674 …error(superCall, Diagnostics.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a…
36705 function superCallIsRootLevelInConstructor(superCall: Node, body: Block) {
36706 const superCallParent = walkUpParenthesizedExpressions(superCall.parent);
/third_party/typescript/lib/
DtypingsInstaller.js84197 var superCall = findFirstSuperCall(node.body);
84198 if (superCall) {
84200 …error(superCall, ts.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_n…
84212 if (!superCallIsRootLevelInConstructor(superCall, node.body)) {
84213 …error(superCall, ts.Diagnostics.A_super_call_must_be_a_root_level_statement_within_a_constructor_o…
84242 function superCallIsRootLevelInConstructor(superCall, body) { argument
84243 var superCallParent = ts.walkUpParenthesizedExpressions(superCall.parent);
103899 …dStatementIndex(constructor.body.statements, existingPrologue), superCall = _a.superCall, superSta…
103914 else if (superCall) {
103915 superCallExpression = visitSuperCallInBody(superCall);
[all …]
Dtsc.js70920 var superCall = findFirstSuperCall(node.body);
70921 if (superCall) {
70923 …error(superCall, ts.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_n…
70929 if (!superCallIsRootLevelInConstructor(superCall, node.body)) {
70930 …error(superCall, ts.Diagnostics.A_super_call_must_be_a_root_level_statement_within_a_constructor_o…
70956 function superCallIsRootLevelInConstructor(superCall, body) { argument
70957 var superCallParent = ts.walkUpParenthesizedExpressions(superCall.parent);
87116 …dStatementIndex(constructor.body.statements, existingPrologue), superCall = _a.superCall, superSta…
87127 else if (superCall) {
87128 superCallExpression = visitSuperCallInBody(superCall);
[all …]