Exemple #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);
 }
Exemple #3
0
 public SolidityFunction AddToBody(SolidityComponent component)
 {
     body.Add(component);
     return(this);
 }
Exemple #4
0
 public IfBlock(string condition, SolidityComponent blockBody, bool isElse)
 {
     this.condition = condition;
     this.blockBody = blockBody;
     this.isElse    = isElse;
 }