/// <summary> /// Initializes a new instance of the <see cref="AntlrParserAdapter{TVertexId}"/> class. /// This constructor is private, use <see cref="GetParser()"/> or /// <see cref="GetParser(DotGraphBuilder{TVertexId})"/> factory methods instead. /// </summary> private AntlrParserAdapter(DotGraphBuilder <TVertexId> builder) { this.builder = builder; }
/// <summary> /// Returns an instance of <see cref="AntlrParserAdapter{TVertexId}"/> composed with /// given graph builder. /// </summary> public static AntlrParserAdapter <TVertexId> GetParser(DotGraphBuilder <TVertexId> builder) { return(new AntlrParserAdapter <TVertexId>(builder)); }