Updates com.google.javascript.refactoring.RefactoringUtils.isInClosurizedFile to recognize files declaring a goog.module as Closurized. Prior to this CL, cases like the following were not classified as Closurized:
```
goog.module('test');
class MyClass {}
exports = MyClass;
```
@@ -33,7 +33,9 @@ public class RefactoringUtils {
Node child = script.getFirstChild();
while (child != null) {
if (NodeUtil.isExprCall(child)) {
- if (Matchers.googRequire().matches(child.getFirstChild(), metadata)) {
+ Node firstChild = child.getFirstChild();
+ if (Matchers.googRequire().matches(firstChild, metadata)
+ || Matchers.googModuleOrProvide().matches(firstChild, metadata)) {
return true;
}
// goog.require or goog.module.
