@Override public PDefinition caseAInheritedDefinition(AInheritedDefinition node, Newquestion question) throws AnalysisException { if (node.getSuperdef() instanceof ATypeDefinition && question.sought.equals(node.getName())) { return node; } return null; }
@Override public NameValuePairList caseAInheritedDefinition(AInheritedDefinition def, Context initialContext) throws AnalysisException { NameValuePairList renamed = new NameValuePairList(); if (def.getSuperdef() instanceof AUntypedDefinition) { if (def.getClassDefinition() != null) { def.setSuperdef(af.createPDefinitionAssistant().findName(def.getClassDefinition(), def.getSuperdef().getName(), def.getNameScope())); } } for (NameValuePair nv : af.createPDefinitionAssistant().getNamedValues(def.getSuperdef(), initialContext)) { renamed.add(new NameValuePair(nv.name.getModifiedName(def.getName().getModule()), nv.value)); } return renamed; }
indef.getName().setTypeQualifier(q);
@Override public LexNameList caseAInheritedDefinition(AInheritedDefinition node) throws AnalysisException { // return AInheritedDefinitionAssistantTC.getVariableNames((AInheritedDefinition) node); LexNameList names = new LexNameList(); // TODO:What About Here, how to I need to handle it. like I have it or Bring the method to this class? DefinitionTypeFinder.checkSuperDefinition(node); for (ILexNameToken vn : node.getSuperdef().apply(THIS)) { names.add(vn.getModifiedName(node.getName().getModule())); } return names; }
indef2.getName().setTypeQualifier(q);
@Override public PDefinition caseAInheritedDefinition(AInheritedDefinition node, Newquestion question) throws AnalysisException { // The problem is, when the InheritedDefinition is created, we // don't know its fully qualified name. if (node.getSuperdef() instanceof AInheritedDefinition) { node.getSuperdef().apply(this, question); } ILexNameToken name = node.getName(); name.setTypeQualifier(node.getSuperdef().getName().getTypeQualifier()); if (af.getLexNameTokenAssistant().isEqual(name, question.sought)) { return node; } else if (question.scope.matches(NameScope.OLDSTATE) && node.getOldname().equals(question.sought)) { return node; } return null; }
i.getName().setTypeQualifier(i.getSuperdef().getName().getTypeQualifier());
for (ILexNameToken vn : getVariableNames(t.getSuperdef())) names.add(vn.getModifiedName(t.getName().getModule()));