Ejemplo n.º 1
0
 public ListParameterVariableDef(AnalysisUnit unit, Node location, VariableDef copy)
     : base(unit.DeclaringModule.ProjectEntry, location, copy)
 {
     List = new StarArgsSequenceInfo(
         VariableDef.EmptyArray,
         unit.ProjectState.ClassInfos[BuiltinTypeId.Tuple],
         location,
         unit.ProjectEntry
         );
     base.AddTypes(unit, List);
 }
Ejemplo n.º 2
0
 public ListParameterVariableDef(AnalysisUnit unit, Node location, string name)
     : base(unit.DeclaringModule.ProjectEntry, new EncodedLocation(unit, location))
 {
     Name = name;
     List = new StarArgsSequenceInfo(
         VariableDef.EmptyArray,
         unit.State.ClassInfos[BuiltinTypeId.Tuple],
         location,
         unit.ProjectEntry
         );
     base.AddTypes(unit, List, false, unit.DeclaringModule.ProjectEntry);
 }
Ejemplo n.º 3
0
 public ListParameterVariableDef(AnalysisUnit unit, Node location, VariableDef copy)
     : base(unit.DeclaringModule.ProjectEntry, location, copy) {
     List = new StarArgsSequenceInfo(
         VariableDef.EmptyArray,
         unit.ProjectState.ClassInfos[BuiltinTypeId.Tuple],
         location,
         unit.ProjectEntry
     );
     base.AddTypes(unit, List);
 }