MCPcopy
hub / github.com/microsoft/pyright / constructor

Method constructor

server/src/parser/parseNodes.ts:175–182  ·  view source on GitHub ↗
(forToken: Token, targetExpression: ExpressionNode,
            sequenceExpression: ExpressionNode, forSuite: SuiteNode)

Source from the content-addressed store, hash-verified

173 elseSuite?: SuiteNode;
174
175 constructor(forToken: Token, targetExpression: ExpressionNode,
176 sequenceExpression: ExpressionNode, forSuite: SuiteNode) {
177 super(forToken);
178 this.targetExpression = targetExpression;
179 this.sequenceExpression = sequenceExpression;
180 this.forSuite = forSuite;
181 this.extend(forSuite);
182 }
183
184 getChildren(): RecursiveParseNodeArray {
185 return [this.targetExpression, this.sequenceExpression, this.forSuite, this.elseSuite];

Callers

nothing calls this directly

Calls 1

extendMethod · 0.80

Tested by

no test coverage detected