Пример #1
0
 public void Execute()
 {
     try
     {
         IAstAttribute aa = CreateAstAttributeInstance();
         if (null != aa)
         {
             aa.Initialize(_context);
             using (aa)
             {
                 aa.Apply(_attribute.ParentNode);
             }
         }
     }
     catch (Exception x)
     {
         _context.Errors.Add(CompilerErrorFactory.AttributeApplicationError(x, _attribute, _type));
     }
 }
Пример #2
0
 public void Execute()
 {
     try
     {
         IAstAttribute aa = CreateAstAttributeInstance();
         if (null != aa)
         {
             aa.Initialize(_context);
             using (aa)
             {
                 aa.Apply(_targetNode);
             }
         }
     }
     catch (Exception x)
     {
         _context.TraceError(x);
         _context.Errors.Add(CompilerErrorFactory.AttributeApplicationError(x, _attribute, _type));
         System.Console.WriteLine(x.StackTrace);
     }
 }