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>(); }
public ConstructorInitializerModel( ConstructorDeclarationModel analyzeUnit, IConstructor constructor, ConstructorDeclarationModel containingBlock) : base( analyzeUnit, analyzeUnit.Node.TypeName ) { ContainingBlock = containingBlock; ThrownExceptions = ThrownExceptionsReader.Read(analyzeUnit, this, constructor); }