/// <summary> /// Initializes a new instance of the <see cref="CodegenResult"/> class. /// </summary> /// <param name='environment'>The environment that describes how the code should be written.</param> /// <exception cref="ArgumentNullException">If the given environment is not effective.</exception> protected CodegenResultBase(ICodegenEnvironment environment) { if (environment == null) { throw new ArgumentNullException ("environment"); } Contract.EndContractBlock (); Contract.Ensures (this.environment != null); Contract.Ensures (this.environment == environment); this.environment = environment; }
/// <summary> /// Initializes a new instance of the <see cref="CodegenResult"/> class. /// </summary> /// <param name='environment'>The environment that describes how the code should be written.</param> /// <exception cref="ArgumentNullException">If the given environment is not effective.</exception> protected CodegenResultBase(ICodegenEnvironment environment) { if (environment == null) { throw new ArgumentNullException("environment"); } Contract.EndContractBlock(); Contract.Ensures(this.environment != null); Contract.Ensures(this.environment == environment); this.environment = environment; }
/// <summary> /// Initializes a new instance of the <see cref="CodegenResult"/> class. /// </summary> /// <param name='environment'>The environment that describes how the code should be written.</param> /// <exception cref="ArgumentNullException">If the given environment is not effective.</exception> protected OOCodegenResultBase(ICodegenEnvironment environment) : base(environment) { }
/// <summary> /// Initializes a new instance of the <see cref="CSharpCodegenResult"/> class where the result /// of a code generator process can be stored and emitted. /// </summary> /// <param name='environment'>The environment that describes how the code should be written.</param> /// <exception cref="ArgumentNullException">If the given environment is not effective.</exception> protected CSharpCodegenResult(ICodegenEnvironment environment) : base(environment) { }