public PropertyWeaver([NotNull] ClassWeaver classWeaver, [NotNull] PropertyDefinition property)
 {
     _classWeaver      = classWeaver;
     _property         = property;
     _systemReferences = _classWeaver._weaver._systemReferences;
     _moduleDefinition = _classWeaver._weaver._moduleDefinition;
     _logger           = _classWeaver._weaver._logger;
     _classDefinition  = _classWeaver._classDefinition;
 }
Exemplo n.º 2
0
        public override void Execute()
        {
            // System.Diagnostics.Debugger.Launch();

            var systemReferences = new SystemReferences(this);

            new PropertyAccessorWeaver(this, systemReferences).Execute();
            new BackingFieldAccessWeaver(ModuleDefinition, this).Execute();

            CleanReferences();
        }
 public PropertyAccessorWeaver([NotNull] ModuleWeaver moduleWeaver, [NotNull] SystemReferences systemReferences)
 {
     _logger           = moduleWeaver;
     _moduleDefinition = moduleWeaver.ModuleDefinition;
     _systemReferences = systemReferences;
 }