if (var.sym.getModifiers() != null && var.sym.getModifiers().contains(Modifier.PUBLIC) && var.sym.getModifiers().contains(Modifier.STATIC)) { commentLines.add("@property {" + getMappedDocType(context, var.getType(), var.getType().type) + "} " + var.getName().toString()); Comment varComment = compilationUnit.docComments.getComment(var); if(varComment!=null) {
if (member instanceof JCVariableDecl) { JCVariableDecl field = (JCVariableDecl) member; if (field.getModifiers().getFlags().contains(Modifier.STATIC) && field.getInitializer() != null && !context.hasAnnotationType(field.sym, JSweetConfig.ANNOTATION_STRING_TYPE, JSweetConfig.ANNOTATION_ERASED)) { acceptReferences(field.getInitializer());
&& newT.hasTag(Tag.VARDEF) && ((JCVariableDecl)newT).getType() != null; if (handleImplicitLambda) { tokenSequence.move(getOldPos(parent));
int[] bounds = getBounds(oldEl.getModifiers()); copyTo(pos, bounds[0]); pos = diffTree(oldEl.getModifiers(), newEl.getModifiers(), bounds); bounds = getBounds(oldEl.getType()); copyTo(pos, pos = bounds[0]); pos = diffTree(oldEl.getType(), newEl.getType(), bounds); copyTo(pos, item.element.pos); skipWhitespaces = true;
if ((owner.flags() & ANNOTATION) != 0 && tree.params.nonEmpty()) log.error(tree.params.head.pos(), "intf.annotation.members.cant.have.params");
if ((owner.flags() & ANNOTATION) != 0 && tree.params.nonEmpty()) log.error(tree.params.head.pos(), "intf.annotation.members.cant.have.params");
if ((owner.flags() & ANNOTATION) != 0 && tree.params.nonEmpty()) log.error(tree.params.head.pos(), "intf.annotation.members.cant.have.params");
if ((owner.flags() & ANNOTATION) != 0 && tree.params.nonEmpty()) log.error(tree.params.head.pos(), "intf.annotation.members.cant.have.params");
for (JCVariableDecl resVar : resourceVarDecls) { if (unrefdResources.includes(resVar.sym)) { log.warning(Lint.LintCategory.TRY, resVar.pos(), "try.resource.not.referenced", resVar.sym); unrefdResources.remove(resVar.sym);
for (JCVariableDecl resVar : resourceVarDecls) { if (unrefdResources.includes(resVar.sym)) { reportWarning(Lint.LintCategory.TRY, resVar.pos(), "try.resource.not.referenced", resVar.sym); unrefdResources.remove(resVar.sym);
if (field != null && field.getInitializer() == tree) { env = memberEnter.getInitEnv(field, env); JCExpression expr = copier.copy((JCExpression)tree, (JCTree) path.getLeaf());
Name name = vd.getName(); JCTree.JCExpression initializer = vd.getInitializer(); JCTree.JCExpression nameExpression = vd.getNameExpression(); JCTree typeTree = vd.getType(); JCTree.JCModifiers modifiers = vd.getModifiers(); final String fieldModifier = parseModifiers(context, modifiers); if (vd.getTag().equals(JCTree.Tag.VARDEF)) { variable.isDef = true;
if (field != null && field.getInitializer() == tree) { env = memberEnter.getInitEnv(field, env); JCExpression expr = copier.copy((JCExpression)tree, (JCTree) path.getLeaf());
ec.astName(new Identifier().astValue(vd.getName().toString())); fillList(vd.mods.annotations, ec.rawAnnotations()); if (vd.init instanceof JCNewClass) {
ec.astName(new Identifier().astValue(vd.getName().toString())); fillList(vd.mods.annotations, ec.rawAnnotations()); if (vd.init instanceof JCNewClass) {