Antlr4.Codegen.Model.ParserFile.ParserFile C# (CSharp) Метод

ParserFile() публичный Метод

public ParserFile ( OutputModelFactory factory, string fileName ) : System.Collections.Generic
factory OutputModelFactory
fileName string
Результат System.Collections.Generic
        public ParserFile(OutputModelFactory factory, string fileName)
            : base(factory, fileName)
        {
            Grammar g = factory.GetGrammar();
            namedActions = BuildNamedActions(factory.GetGrammar());
            genPackage = g.tool.genPackage;
            exportMacro = factory.GetGrammar().GetOptionString("exportMacro");
            // need the below members in the ST for Python, C++
            genListener = g.tool.gen_listener;
            genVisitor = g.tool.gen_visitor;
            grammarName = g.name;

            if (g.GetOptionString("contextSuperClass") != null)
            {
                contextSuperClass = new ActionText(null, g.GetOptionString("contextSuperClass"));
            }
        }
    }
ParserFile