private static AstName toName(String name) {
assert name != null;
String[] segments = name.split("\\.");
AstName current = toSimpleName(segments[0]);
for (int i = 1; i < segments.length; i++) {
current = new AstQualifiedName(null, current, toSimpleName(segments[i]));
}
return current;
}