}
addDeclaredType(shortName);
return false;
}
if (s instanceof RutaVariableDeclaration) {
RutaVariableDeclaration newVar = (RutaVariableDeclaration) s;
if (knowsVariable(newVar.getName())) {
IProblem problem = problemFactory.createIdConflictsWithVariableProblem(newVar);
pr.reportProblem(problem);
return false;
}
if (namespaces.containsKey(newVar.getName())) {
IProblem problem = problemFactory.createIdConflictsWithTypeProblem(newVar);
pr.reportProblem(problem);
return false;
}
knownLocalVariables.peek().put(newVar.getName(), newVar.getKind());
return false;
}
if (s instanceof RutaRegExpRule) {
RutaRegExpRule rule = (RutaRegExpRule) s;
Map<Expression, Map<Expression, Expression>> faMap = rule.getFeats();