public Language(string?srcFile, UsingList usings, Identifier? @namespace, OptionList?options, CharacterList characters, TokenList tokens, ProductionSection productions, ConflictList?conflicts) { this.srcFile = srcFile; Usings = usings; Namespace = @namespace ?? new Identifier("Opal"); this.options = options; Characters = characters; this.tokens = tokens; Productions = productions; Conflicts = conflicts ?? new ConflictList(); }
public static UsingList Add(UsingList list, Using item) { list.data.Add(item); return(list); }