Exemplo n.º 1
0
        public DefBlockServiceLine(DefBlockServiceBodyModifier modifier, ObjectHolder rightValueObj)
        {
            if (modifier.ValueText != "return")
            {
                throw new Exception("Identifier " + rightValueObj.ValueText + " can only follow a return statement");
            }

            this.modifier = modifier;
            this.rightValueObj = rightValueObj;
        }
Exemplo n.º 2
0
 public DefBlockServiceLine(DefBlockServiceBodyModifier modifier, AddressHandler address, 
     Optional<TokenList<ObjectOrCall>> optObjOrCallList)
 {
     this.modifier = modifier;
     this.address = address;
     this.optObjOrCallList = optObjOrCallList;
 }