cud.types = toArray(TypeDeclaration.class, node.astTypeDeclarations());
cud.types = toArray(TypeDeclaration.class, node.astTypeDeclarations());
cud.types = toArray(TypeDeclaration.class, node.astTypeDeclarations());
List<JCTree> preamble = toList(JCTree.class, node.astPackageDeclaration()); List<JCTree> imports = toList(JCTree.class, node.astImportDeclarations()); List<JCTree> types = toList(JCTree.class, node.astTypeDeclarations()); if (node.astPackageDeclaration() != null) start = Math.min(start, node.astPackageDeclaration().getPosition().getStart()); if (!node.astImportDeclarations().isEmpty()) start = Math.min(start, node.rawImportDeclarations().first().getPosition().getStart()); if (!node.astTypeDeclarations().isEmpty()) start = Math.min(start, node.rawTypeDeclarations().first().getPosition().getStart()); if (start == Integer.MAX_VALUE) start = node.getPosition().getStart(); return set(node, setPos(start, end, topLevel));
List<JCTree> preamble = toList(JCTree.class, node.astPackageDeclaration()); List<JCTree> imports = toList(JCTree.class, node.astImportDeclarations()); List<JCTree> types = toList(JCTree.class, node.astTypeDeclarations()); if (node.astPackageDeclaration() != null) start = Math.min(start, node.astPackageDeclaration().getPosition().getStart()); if (!node.astImportDeclarations().isEmpty()) start = Math.min(start, node.rawImportDeclarations().first().getPosition().getStart()); if (!node.astTypeDeclarations().isEmpty()) start = Math.min(start, node.rawTypeDeclarations().first().getPosition().getStart()); if (start == Integer.MAX_VALUE) start = node.getPosition().getStart(); return set(node, setPos(start, end, topLevel));
List<JCTree> preamble = toList(JCTree.class, node.astPackageDeclaration()); List<JCTree> imports = toList(JCTree.class, node.astImportDeclarations()); List<JCTree> types = toList(JCTree.class, node.astTypeDeclarations()); if (node.astPackageDeclaration() != null) start = Math.min(start, node.astPackageDeclaration().getPosition().getStart()); if (!node.astImportDeclarations().isEmpty()) start = Math.min(start, node.rawImportDeclarations().first().getPosition().getStart()); if (!node.astTypeDeclarations().isEmpty()) start = Math.min(start, node.rawTypeDeclarations().first().getPosition().getStart()); if (start == Integer.MAX_VALUE) start = node.getPosition().getStart(); return set(node, setPos(start, end, topLevel));