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 24 | 1x 1x 1x 1x 1x 1x 91x 91x 91x 5x 5x 5x 86x 86x 91x 11x 91x 70x 75x 5x 5x 5x 91x 1x | import {ExpressionNode} from "../../nodes"; import {CurrentScope} from "../_current_scope"; import {ReferenceType} from "../_reference"; export class DatabaseTable { public runSyntax(node: ExpressionNode, scope: CurrentScope, filename: string): void { const token = node.getFirstToken(); const name = token.getStr(); if (name === "(") { // dynamic return; } const found = scope.getDDIC().lookupTableOrView2(name); if (found === undefined && scope.getDDIC().inErrorNamespace(name) === true) { throw new Error("Database table or view \"" + name + "\" not found"); } else if (found === undefined) { scope.addReference(token, undefined, ReferenceType.TableVoidReference, filename); } else { scope.addReference(token, found.getIdentifier(), ReferenceType.TableReference, filename); scope.getDDICReferences().addUsing(scope.getParentObj(), {object: found, token: token, filename: filename}); } } } |