Automated g4 rollback of changelist
*** Reason for rollback ***
Breakages
*** Original change description ***
Allow qualified names that are valid in the output language, even if they aren't valid in the input language.
***
@@ -1043,9 +1043,9 @@ class ProcessClosurePrimitives extends AbstractPostOrderCallback
return false;
}
- if (!NodeUtil.isValidQualifiedName(compiler.getOptions().getLanguageOut(), arg.getString())) {
+ if (!NodeUtil.isValidQualifiedName(compiler.getLanguageMode(), arg.getString())) {
compiler.report(t.makeError(arg, INVALID_PROVIDE_ERROR,
- arg.getString(), compiler.getOptions().getLanguageOut().toString()));
+ arg.getString(), compiler.getLanguageMode().toString()));
return false;
}
@@ -1077,7 +1077,7 @@ class ProcessClosurePrimitives extends AbstractPostOrderCallback
}
String name = args.getString();
- if (!NodeUtil.isValidQualifiedName(compiler.getOptions().getLanguageOut(), name)) {
+ if (!NodeUtil.isValidQualifiedName(compiler.getLanguageMode(), name)) {
compiler.report(t.makeError(args, INVALID_DEFINE_NAME_ERROR, name));
return false;
}
