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; }
public DefBlockServiceLine(DefBlockServiceBodyModifier modifier, AddressHandler address, Optional<TokenList<ObjectOrCall>> optObjOrCallList) { this.modifier = modifier; this.address = address; this.optObjOrCallList = optObjOrCallList; }