Search in sources :

Example 1 with NamedArgumentList

use of org.eclipse.ceylon.model.typechecker.model.NamedArgumentList in project ceylon by eclipse.

the class DeclarationVisitor method visit.

@Override
public void visit(Tree.NamedArgumentList that) {
    NamedArgumentList nal = new NamedArgumentList();
    nal.setId(id++);
    for (Tree.NamedArgument na : that.getNamedArguments()) {
        Tree.Identifier id = na.getIdentifier();
        if (id != null) {
            nal.getArgumentNames().add(id.getText());
        }
    }
    that.setNamedArgumentList(nal);
    visitElement(that, nal);
    Scope o = enterScope(nal);
    super.visit(that);
    exitScope(o);
}
Also used : Scope(org.eclipse.ceylon.model.typechecker.model.Scope) ConditionScope(org.eclipse.ceylon.model.typechecker.model.ConditionScope) ModelUtil.getRealScope(org.eclipse.ceylon.model.typechecker.model.ModelUtil.getRealScope) CustomTree(org.eclipse.ceylon.compiler.typechecker.tree.CustomTree) Tree(org.eclipse.ceylon.compiler.typechecker.tree.Tree) NamedArgumentList(org.eclipse.ceylon.model.typechecker.model.NamedArgumentList)

Aggregations

CustomTree (org.eclipse.ceylon.compiler.typechecker.tree.CustomTree)1 Tree (org.eclipse.ceylon.compiler.typechecker.tree.Tree)1 ConditionScope (org.eclipse.ceylon.model.typechecker.model.ConditionScope)1 ModelUtil.getRealScope (org.eclipse.ceylon.model.typechecker.model.ModelUtil.getRealScope)1 NamedArgumentList (org.eclipse.ceylon.model.typechecker.model.NamedArgumentList)1 Scope (org.eclipse.ceylon.model.typechecker.model.Scope)1