Package com.redhat.ceylon.compiler.typechecker.tree.Tree

Examples of com.redhat.ceylon.compiler.typechecker.tree.Tree.PositionalArgument.visit()


                Tree.BaseTypeExpression bte = (Tree.BaseTypeExpression)primary;
                if (exprGen.typeFact().getByteDeclaration().equals(bte.getDeclaration())) {
                    // Special case for "Byte(x)" where we make use of the fact that it looks
                    // like an annotation class instantiation but is in fact a byte literal
                    PositionalArgument arg = invocation.getPositionalArgumentList().getPositionalArguments().get(0);
                    arg.visit(this);
                } else {
                    if (!Decl.isAnnotationClass(bte.getDeclaration())) {
                        append(exprGen.makeErroneous(primary, "compiler bug: " + bte.getDeclaration().getName() + " is not an annotation class"));
                    }
                    append(transformInstantiation(exprGen, invocation));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.