public Block addBlock(Block block) {
    if (firstBlock == null)
      firstBlock = lastBlock = block;
    else {
      lastBlock.setNext(block);
      block.setPrevious(lastBlock);
      lastBlock = block;
    }
    return block;
  }
AST node representing a Spec method (one of fixture method, feature method, helper method).

@author Peter Niederwieser
spock-core/src/main/java/org/spockframework/compiler/model/Method.java