Ejemplo n.º 1
0
 public Resolver(EazModule module, ILogger logger,
                 SerializationVersion version = SerializationVersion.V1)
     : base(module)
 {
     this.Logger   = (logger != null ? logger : DummyLogger.NoThrowInstance);
     this.Importer = new Importer(this.Module, ImporterOptions.TryToUseDefs);
     this.Version  = version;
 }
Ejemplo n.º 2
0
		public Resolver(EazModule module, ILogger logger,
			SerializationVersion version = SerializationVersion.V1)
			: base(module)
		{
			this.Logger = (logger != null ? logger : DummyLogger.NoThrowInstance);
			this.Importer = new Importer(this.Module, ImporterOptions.TryToUseDefs);
			this.Version = version;
		}
Ejemplo n.º 3
0
        /// <summary>
        /// Construct a method body reader given a method stub.
        /// </summary>
        /// <param name="method">Method stub</param>
        /// <param name="logger">Logger</param>
        /// <param name="version">Serialization version</param>
        public VirtualizedMethodBodyReader(MethodStub method, ILogger logger,
                                           SerializationVersion version = SerializationVersion.V1)
            : base((method != null ? method.Parent : null))
        {
            if (method == null)
            {
                throw new ArgumentNullException();
            }

            this.Method  = method;
            this.Logger  = (logger != null ? logger : DummyLogger.NoThrowInstance);
            this.Version = version;

            this.Initialize();
        }
		/// <summary>
		/// Construct a method body reader given a method stub.
		/// </summary>
		/// <param name="method">Method stub</param>
		/// <param name="logger">Logger</param>
		/// <param name="version">Serialization version</param>
		public VirtualizedMethodBodyReader(MethodStub method, ILogger logger,
			SerializationVersion version = SerializationVersion.V1)
			: base((method != null ? method.Parent : null))
		{
			if (method == null)
				throw new ArgumentNullException();

			this.Method = method;
			this.Logger = (logger != null ? logger : DummyLogger.NoThrowInstance);
			this.Version = version;

			this.Initialize();
		}
		/// <summary>
		/// Construct a method body reader given a method stub.
		/// </summary>
		/// <param name="method">Method stub</param>
		/// <param name="version">Serialization version</param>
		public VirtualizedMethodBodyReader(MethodStub method,
			SerializationVersion version = SerializationVersion.V1)
			: this(method, null, version)
		{
		}
Ejemplo n.º 6
0
 /// <summary>
 /// Construct a method body reader given a method stub.
 /// </summary>
 /// <param name="method">Method stub</param>
 /// <param name="version">Serialization version</param>
 public VirtualizedMethodBodyReader(MethodStub method,
                                    SerializationVersion version = SerializationVersion.V1)
     : this(method, null, version)
 {
 }