/// <summary> /// Constructs a new parse tree for a Using statement block with variable declarators. /// </summary> /// <param name="variableDeclarators">The variable declarators.</param> /// <param name="statements">The statements in the block.</param> /// <param name="endStatement">The End statement for the block, if any.</param> /// <param name="span">The location of the parse tree.</param> /// <param name="comments">The comments for the parse tree.</param> public UsingBlockStatement(VariableDeclaratorCollection variableDeclarators, StatementCollection statements, EndBlockStatement endStatement, Span span, IList <Comment> comments) : base(TreeType.UsingBlockStatement, null, statements, endStatement, span, comments) { if (variableDeclarators == null) { throw new ArgumentNullException("variableDeclarators"); } SetParent(variableDeclarators); _VariableDeclarators = variableDeclarators; }
/// <summary> /// Constructs a parse tree for variable declarations. /// </summary> /// <param name="attributes">The attributes on the declaration.</param> /// <param name="modifiers">The modifiers on the declaration.</param> /// <param name="variableDeclarators">The variables being declared.</param> /// <param name="span">The location of the parse tree.</param> /// <param name="comments">The comments for the parse tree.</param> public VariableListDeclaration(AttributeBlockCollection attributes, ModifierCollection modifiers, VariableDeclaratorCollection variableDeclarators, Span span, IList <Comment> comments) : base(TreeType.VariableListDeclaration, attributes, modifiers, span, comments) { if (variableDeclarators == null) { throw new ArgumentNullException("variableDeclarators"); } SetParent(variableDeclarators); _VariableDeclarators = variableDeclarators; }
/// <summary> /// Constructs a new parse tree for a local declaration statement. /// </summary> /// <param name="modifiers">The statement modifiers.</param> /// <param name="variableDeclarators">The variable declarators.</param> /// <param name="span">The location of the parse tree.</param> /// <param name="comments">The comments for the parse tree.</param> public LocalDeclarationStatement(ModifierCollection modifiers, VariableDeclaratorCollection variableDeclarators, Span span, IList <Comment> comments) : base(TreeType.LocalDeclarationStatement, span, comments) { if (modifiers == null) { throw new ArgumentNullException("modifers"); } if (variableDeclarators == null) { throw new ArgumentNullException("variableDeclarators"); } SetParent(modifiers); SetParent(variableDeclarators); _Modifiers = modifiers; _VariableDeclarators = variableDeclarators; }