コード例 #1
0
        public override void EnterSubmacro([NotNull] TxMarkParser.SubmacroContext context)
        {
            var macroName       = context.macroName().GetText();
            var macroDefinition = _compileContext.ResolveMacro(macroName);

            if (!macroDefinition.Defined)
            {
                _compileContext.Log(LogLevel.Error, $"Macro ({macroName}:) was not found.", context.Start.Line, context.Start.Column);
            }
            _compileContext.SetLocation(context.Start.Line, context.Start.Column);
            _compileContext.PushMacro(macroDefinition, null);
        }