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); }
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); }