示例#1
0
 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;
 }
示例#2
0
 public WriterContext(TypeSet set, FlexWriter writer)
     : this(set, writer, new ScopeStack())
 {
 }