Put newQName overloads next to each other.
@@ -1763,6 +1763,7 @@ public final class NodeUtil {
}
}
+ /** @see #getKnownValueType(Node) */
public enum ValueType {
UNDETERMINED,
NULL,
@@ -3761,6 +3762,13 @@ public final class NodeUtil {
return addingRoot;
}
+ public static Node newDeclaration(Node lhs, @Nullable Node rhs, Token declarationType) {
+ if (rhs == null) {
+ return IR.declaration(lhs, declarationType);
+ }
+ return IR.declaration(lhs, rhs, declarationType);
+ }
+
/**
* Creates a node representing a qualified name.
*
@@ -3800,13 +3808,6 @@ public final class NodeUtil {
return node;
}
- public static Node newDeclaration(Node lhs, @Nullable Node rhs, Token declarationType) {
- if (rhs == null) {
- return IR.declaration(lhs, declarationType);
- }
- return IR.declaration(lhs, rhs, declarationType);
- }
-
/**
* Creates a node representing a qualified name, copying over the source
* location information from the basis node and assigning the given original
