public TraitsUse(Text.Span span, IList <TypeRef> /*!*/ traitsList, TraitAdaptationBlock traitAdaptationBlock) : base(span, PhpMemberAttributes.Public) { if (traitsList == null) { throw new ArgumentNullException("traitsList"); } Debug.Assert(traitsList.All(t => t is INamedTypeRef)); this.traitsList = traitsList.AsArray(); this.traitAdaptationBlock = traitAdaptationBlock; }
public TraitsUse(Text.Span span, List <QualifiedNameRef> /*!*/ traitsList, TraitAdaptationBlock traitAdaptationBlock) : base(span, PhpMemberAttributes.Public, null) { if (traitsList == null) { throw new ArgumentNullException("traitsList"); } this.traitsList = traitsList; this.traitAdaptationBlock = traitAdaptationBlock; }