if (hasFlag(VARIABLES, flags) || hasFlag(TYPES, flags)) { BodyDeclaration declaration= ASTResolving.findParentBodyDeclaration(node); if (declaration instanceof MethodDeclaration || declaration instanceof Initializer) { ScopeAnalyzerVisitor visitor= new ScopeAnalyzerVisitor(node.getStartPosition(), flags); declaration.accept(visitor); } }
addLocalDeclarations(node, node.getStartPosition(), flags);
	private void addLocalDeclarations(ASTNode node, int flags) {		if (hasFlag(VARIABLES, flags) || hasFlag(TYPES, flags)) {			BodyDeclaration declaration= ASTResolving.findParentBodyDeclaration(node);			if (declaration instanceof MethodDeclaration || declaration instanceof Initializer) {						ScopeAnalyzerVisitor visitor= new ScopeAnalyzerVisitor(node.getStartPosition(), flags);				declaration.accept(visitor);			}		}	}