if (s.getEnclosingElement() instanceof ClassSymbol && !s.isStatic()) { print(Java2TypeScriptTranslator.PARENT_CLASS_FIELD_NAME); if (argsLength > 0) {
if (getScope().innerClassNotStatic) { TypeSymbol s = classdecl.extending.type.tsym; if (s.getEnclosingElement() instanceof ClassSymbol && !s.isStatic()) { print(PARENT_CLASS_FIELD_NAME); hasArg = true;
if (cdef != null && clazztype.tsym.isInterface()) { log.error(tree.encl.pos(), "anon.class.impl.intf.no.qual.for.new"); } else if (clazztype.tsym.isStatic()) { log.error(tree.encl.pos(), "qualified.new.of.static.class", clazztype.tsym);
if (cdef != null && clazztype.tsym.isInterface()) { log.error(tree.encl.pos(), "anon.class.impl.intf.no.qual.for.new"); } else if (clazztype.tsym.isStatic()) { log.error(tree.encl.pos(), "qualified.new.of.static.class", clazztype.tsym);
if (cdef != null && clazztype.tsym.isInterface()) { log.error(tree.encl.pos(), "anon.class.impl.intf.no.qual.for.new"); } else if (clazztype.tsym.isStatic()) { log.error(tree.encl.pos(), "qualified.new.of.static.class", clazztype.tsym);
if (cdef != null && clazztype.tsym.isInterface()) { log.error(tree.encl.pos(), "anon.class.impl.intf.no.qual.for.new"); } else if (clazztype.tsym.isStatic()) { log.error(tree.encl.pos(), "qualified.new.of.static.class", clazztype.tsym);
public void visitSelectInternal(JCFieldAccess tree) { if (tree.type.tsym.isStatic() && tree.selected.type.isParameterized()) { // The enclosing type is not a class, so we are // looking at a static member type. However, the // qualifying expression is parameterized. log.error(tree.pos(), "cant.select.static.class.from.param.type"); } else { // otherwise validate the rest of the expression tree.selected.accept(this); } }
public void visitSelectInternal(JCFieldAccess tree) { if (tree.type.tsym.isStatic() && tree.selected.type.isParameterized()) { // The enclosing type is not a class, so we are // looking at a static member type. However, the // qualifying expression is parameterized. log.error(tree.pos(), "cant.select.static.class.from.param.type"); } else { // otherwise validate the rest of the expression tree.selected.accept(this); } }