示例#1
0
        public SolidityIfElse AddConditionBlock(string condition, SolidityComponent blockBody)
        {
            var conditionBlock = new IfBlock(condition, blockBody, conditionBlocks.Count > 0);

            conditionBlocks.Add(conditionBlock);
            return(this);
        }
 public SolidityConstructor AddToBody(SolidityComponent component)
 {
     body.Add(component);
     return(this);
 }
示例#3
0
 public SolidityFunction AddToBody(SolidityComponent component)
 {
     body.Add(component);
     return(this);
 }
示例#4
0
 public IfBlock(string condition, SolidityComponent blockBody, bool isElse)
 {
     this.condition = condition;
     this.blockBody = blockBody;
     this.isElse    = isElse;
 }