UNPKG

@abaplint/core

Version:
23 lines 1.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FieldSymbol = void 0; const Expressions = require("../../2_statements/expressions"); const _typed_identifier_1 = require("../../types/_typed_identifier"); const basic_types_1 = require("../basic_types"); const unknown_type_1 = require("../../types/basic/unknown_type"); class FieldSymbol { runSyntax(node, input) { var _a; const fsname = (_a = node.findFirstExpression(Expressions.FieldSymbol)) === null || _a === void 0 ? void 0 : _a.getFirstToken(); const bfound = new basic_types_1.BasicTypes(input).parseType(node); if (bfound && fsname) { input.scope.addIdentifier(new _typed_identifier_1.TypedIdentifier(fsname, input.filename, bfound)); return; } if (fsname) { input.scope.addIdentifier(new _typed_identifier_1.TypedIdentifier(fsname, input.filename, new unknown_type_1.UnknownType("Fieldsymbol, fallback"))); } } } exports.FieldSymbol = FieldSymbol; //# sourceMappingURL=fieldsymbol.js.map