@Override
public boolean visit(BlockStatement block) throws Exception
{
if (TwigCoreConstants.START_BLOCK.equals(block.getName().getValue())) {
Variable name = block.getBlockName();
if (name == null) {
return false;
}
List<?> statements = block.getChilds();
MethodInfo info = new MethodInfo();
info.nameSourceStart = name.sourceStart();
info.nameSourceEnd = name.sourceEnd() - 1;
info.declarationStart = block.sourceStart();
info.name = name.getValue();
fRequestor.enterMethod(info);
if (statements.size() > 1) {
fRequestor.exitMethod(block.sourceEnd());
}