Package org.evolizer.famix.importer.ASTCrawler

Examples of org.evolizer.famix.importer.ASTCrawler.StatementBlock


        if (entity != null && entity instanceof FamixMethod) {
            gatherVariablesInScope(variables, entity.getParent(), statementBlock);
            addVars(variables, new HashSet<AbstractFamixVariable>(((FamixMethod) entity).getParameters()));
            for (FamixLocalVariable lLocalVariable : ((FamixMethod) entity).getLocalVariables()) {
                // get block surrounding local variable declaration
                StatementBlock surroundingBlock = getCrawler().getLocalVariableScope().get(lLocalVariable);
                // check if block of statement is contained by that block
                if (surroundingBlock != null) {
                    if ((surroundingBlock.getStart() <= statementBlock.getStart())
                            && (surroundingBlock.getEnd() >= statementBlock.getEnd())) {
                        Set<AbstractFamixVariable> tmpVarList = new HashSet<AbstractFamixVariable>();
                        tmpVarList.add(lLocalVariable);
                        addVars(variables, tmpVarList);
                    }
                } else {
View Full Code Here

TOP

Related Classes of org.evolizer.famix.importer.ASTCrawler.StatementBlock

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.