Search in sources :

Example 1 with ReachableReference

use of ceylon.language.serialization.ReachableReference in project ceylon by eclipse.

the class Tuple method $references$.

@Ignore
@Override
public java.util.Collection<ReachableReference> $references$() {
    // could put the elements with int indexes and the rest as a String!
    ArrayList<ReachableReference> s = new ArrayList<ReachableReference>(2);
    ClassDeclaration cd = (ClassDeclaration) Metamodel.getOrCreateMetamodel(Tuple.class);
    s.add(new MemberImpl(Util.assertExists(cd.<ValueDeclaration>getMemberDeclaration(ValueDeclaration.$TypeDescriptor$, "first"))));
    s.add(new MemberImpl(Util.assertExists(cd.<ValueDeclaration>getMemberDeclaration(ValueDeclaration.$TypeDescriptor$, "rest"))));
    return s;
}
Also used : ClassDeclaration(ceylon.language.meta.declaration.ClassDeclaration) MemberImpl(ceylon.language.impl.MemberImpl) ArrayList(java.util.ArrayList) ReachableReference(ceylon.language.serialization.ReachableReference) Ignore(org.eclipse.ceylon.compiler.java.metadata.Ignore)

Aggregations

MemberImpl (ceylon.language.impl.MemberImpl)1 ClassDeclaration (ceylon.language.meta.declaration.ClassDeclaration)1 ReachableReference (ceylon.language.serialization.ReachableReference)1 ArrayList (java.util.ArrayList)1 Ignore (org.eclipse.ceylon.compiler.java.metadata.Ignore)1