@Override
public boolean enterBlock(Block block) {
handleDeclarations();
if (inNode.isStrict()) {
if (getPath().size() > 0) {
currentBlockScope = new DeclarationScopeImpl(currentBlockScope, currentBlockScope,
new Identifier(BLOCK_OBJECT_NAME_PREFIX + block.getStart(), OffsetRange.NONE), new OffsetRange(block.getStart(), block.getFinish()), currentBlockScope.getMimeType() , currentBlockScope.getSourceLabel());
currentBlockScope.setJsKind(JsElement.Kind.BLOCK);
}
}
isParameterBlock = block.isParameterBlock();
return super.enterBlock(block);
}