Beispiel #1
0
 public ConstructorInitializerModel(IAnalyzeUnit analyzeUnit, IConstructorInitializer node, IBlockModel containingBlock)
     : base(analyzeUnit, node)
 {
     ContainingBlock  = containingBlock;
     ThrownExceptions = node.Reference != null?
                        ThrownExceptionsReader.Read(analyzeUnit, this, node.Reference.Resolve().DeclaredElement) :
                            new List <ThrownExceptionModel>();
 }
Beispiel #2
0
 public ConstructorInitializerModel(
     ConstructorDeclarationModel analyzeUnit,
     IConstructor constructor,
     ConstructorDeclarationModel containingBlock)
     : base(
         analyzeUnit,
         analyzeUnit.Node.TypeName
         )
 {
     ContainingBlock  = containingBlock;
     ThrownExceptions = ThrownExceptionsReader.Read(analyzeUnit, this, constructor);
 }