private void buildFeatureMethod(MethodNode method) {
    Method feature = new FeatureMethod(spec, method, featureMethodCount++);
    try {
      buildBlocks(feature);
    } catch (InvalidSpecCompileException e) {
      errorReporter.error(e);
      return;
    }
    spec.getMethods().add(feature);
  }
Given the abstract syntax tree of a Groovy class representing a Spock
specification, builds an object model of the specification.

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