public void AppendParameters(ParameterListBlock block) { if (!CanAppendParameters()) { return; } Parameters = block; Text.AppendBlocks(Parameters); }
public void AppendParameters(string parameters) { if (!CanAppendParameters()) { return; } Parameters = new ParameterListBlock(parameters); Text.AppendBlocks(Parameters); }
public void AppendThisParameters(string parameters) { if (!CanAppendThisParameters()) { return; } ThisParameters = new ParameterListBlock(parameters); ThisParameters.TypeOfBraces = ParameterListBlock.TypeOfParentheses.SquareBrackets; Text.AppendBlocks(ThisParameters); }
private void Check() { bool propertyAccessorsFound = false; bool parametersFound = false; bool thisParametersFound = false; foreach (Block b in this.Children) { InterfaceAccessorsBlock acc = b as InterfaceAccessorsBlock; if (acc != null) { if (PropertyAccessors != acc) { PropertyAccessors = acc; } propertyAccessorsFound = true; } ParameterListBlock par = b as ParameterListBlock; if (par != null) { if (par.TypeOfBraces == ParameterListBlock.TypeOfParentheses.Parentheses) { if (Parameters != par) { Parameters = par; } parametersFound = true; } else if (par.TypeOfBraces == ParameterListBlock.TypeOfParentheses.SquareBrackets) { if (ThisParameters != par) { ThisParameters = par; } thisParametersFound = true; } } } if (!propertyAccessorsFound && PropertyAccessors != null) { PropertyAccessors = null; } if (!parametersFound && Parameters != null) { Parameters = null; } if (!thisParametersFound && ThisParameters != null) { ThisParameters = null; } }
public override void Visit(ParameterListBlock block) { }
public override void Visit(ParameterListBlock block) { Write(block.OpeningBrace + block.Text + block.ClosingBrace); }
public virtual void Visit(ParameterListBlock block) { }