Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 1x 1x 1x 1x 1x 1x 1x 1x 26x 26x 26x 22x 22x 26x 26x 30x 30x 26x 26x 26x 1x | import {ExpressionNode} from "../../nodes";
import * as Expressions from "../../2_statements/expressions";
import {InlineFieldDefinition} from "./inline_field_definition";
import {ScopeType} from "../_scope_type";
import {SyntaxInput} from "../_syntax_input";
export class Let {
public static runSyntax(node: ExpressionNode | undefined, input: SyntaxInput, skipScope = false): boolean {
if (node === undefined) {
return false;
}
if (skipScope !== true) {
input.scope.push(ScopeType.Let, "LET", node.getFirstToken().getStart(), input.filename);
}
for (const f of node.findDirectExpressions(Expressions.InlineFieldDefinition)) {
InlineFieldDefinition.runSyntax(f, input);
}
return true;
}
} |