@Override public void caseAQualifiedSingleTypeIdentifier(AQualifiedSingleTypeIdentifier node) { super.caseAQualifiedSingleTypeIdentifier(node); TemplateBindingProcessor<Classifier, Type> tbp = new TemplateBindingProcessor<Classifier, Type>(); tbp.process(node); parameterIdentifiers = tbp.getParameterIdentifiers(); final String qualifiedIdentifier = Util.parseQualifiedIdentifier(node.getMinimalTypeIdentifier()); Type type = resolveType(node, qualifiedIdentifier); if (type != null) addElement(type); }
@Override public void caseAAnySingleTypeIdentifier(AAnySingleTypeIdentifier node) { final Type anyType = (Type) getContext() .getRepository() .findNamedElement(TypeUtils.ANY_TYPE, IRepository.PACKAGE.getType(), null); if (anyType == null) { Util.addProblem( getContext().getProblemTracker(), new UnresolvedSymbol(TypeUtils.ANY_TYPE), node); throw new AbortedStatementCompilationException(); } addElement(anyType); }