Antlr4.Codegen.DefaultOutputModelFactory.DefaultOutputModelFactory C# (CSharp) Method

DefaultOutputModelFactory() protected method

protected DefaultOutputModelFactory ( [ gen ) : System.Collections.Generic
gen [
return System.Collections.Generic
        protected DefaultOutputModelFactory([NotNull] CodeGenerator gen)
        {
            this.gen = gen;
            this.g = gen.g;

            if (gen.GetTarget() == null)
            {
                throw new NotSupportedException("Cannot build an output model without a target.");
            }
        }