@Override public List<PDefinition> caseATypeDefinition(ATypeDefinition node) throws AnalysisException { List<PDefinition> defs = new Vector<PDefinition>(); defs.add(node); defs.addAll(node.getComposeDefinitions()); if (node.getInvdef() != null) { defs.add(node.getInvdef()); } return defs; }
@Override public PDefinition caseATypeDefinition(ATypeDefinition node, Newquestion question) throws AnalysisException { if (!node.getComposeDefinitions().isEmpty()) { for (PDefinition compose : node.getComposeDefinitions()) { PDefinition found = af.createPDefinitionAssistant().findNameBaseCase(compose, question.sought, NameScope.TYPENAME); if (found != null) { return found; } } } return af.createPDefinitionAssistant().findNameBaseCase(node, question.sought, NameScope.TYPENAME); }
List<PDefinition> copy = new ArrayList<PDefinition>(node.getComposeDefinitions()); for( PDefinition e : copy)
List<PDefinition> copy = new ArrayList<PDefinition>(node.getComposeDefinitions()); for( PDefinition e : copy)
List<PDefinition> copy = new ArrayList<PDefinition>(node.getComposeDefinitions()); for( PDefinition e : copy)
List<PDefinition> copy = new ArrayList<PDefinition>(node.getComposeDefinitions()); for( PDefinition e : copy)
List<PDefinition> copy = new ArrayList<PDefinition>(node.getComposeDefinitions()); for( PDefinition e : copy)
node.getComposeDefinitions().clear(); node.getComposeDefinitions().add(AstFactory.newATypeDefinition(rtype.getName(), rtype, null, null));
node.getComposeDefinitions().clear(); PDefinition cdef = AstFactory.newATypeDefinition(rtype.getName(), rtype, null, null); cdef.setAccess(node.getAccess().clone()); node.getComposeDefinitions().add(cdef); rtype.getDefinitions().get(0).setAccess(node.getAccess().clone());
if (!node.getComposeDefinitions().isEmpty()) for (PDefinition compose : node.getComposeDefinitions())