public Statement CreateSuperConstructorInvocation(IType baseType) { IConstructor defaultConstructor = _tss.GetDefaultConstructor(baseType); Debug.Assert(null != defaultConstructor); return(CreateSuperConstructorInvocation(defaultConstructor)); }
private IConstructor DefaultConstructorFor(IType baseType) { IConstructor defaultConstructor = TypeSystemServices.GetDefaultConstructor(baseType); if (null == defaultConstructor) { throw new ArgumentException("No default constructor for type '" + baseType + "'."); } return(defaultConstructor); }
public Attribute CreateAttribute(IType type) { // TODO: check for the existence of a default constructor return(CreateAttribute(_tss.GetDefaultConstructor(type))); }