public List<Expression> getScriptExpressions() {
    return getExpressions(getScriptStatements());
  }
Returns the top-level expressions in a script. If no such expressions are
found, an empty list is returned.

@return the top-level expressions in a script
spock-core/src/main/java/org/spockframework/util/inspector/AstInspector.java