public WriterContext(TypeSet set, FlexWriter writer, ScopeStack globals) { if (set == null) { throw new ArgumentNullException(nameof(set)); } if (writer == null) { throw new ArgumentNullException(nameof(writer)); } if (globals == null) { throw new ArgumentNullException(nameof(globals)); } Types = set; Writer = writer; Scope = globals; }
public WriterContext(TypeSet set, FlexWriter writer) : this(set, writer, new ScopeStack()) { }