Returns the {@link Module} corresponding to this scope root, or null if not a module root.
349513
@Nullable
  private Module getModuleFromScopeRoot(Node moduleBody) {
    if (moduleBody.isModuleBody()) {
      // TODO(b/128633181): handle ES modules here
      Node scriptNode = moduleBody.getParent();
      checkState(
          scriptNode.getBooleanProp(Node.GOOG_MODULE),
          "Typechecking of non-goog-modules not supported");
      Node googModuleCall = moduleBody.getFirstChild();
      String namespace = googModuleCall.getFirstChild().getSecondChild().getString();
      return moduleMap.getClosureModule(namespace);

    } else if (isGoogLoadModuleBlock(moduleBody)) {
      Node googModuleCall = moduleBody.getFirstChild();
      String namespace = googModuleCall.getFirstChild().getSecondChild().getString();
      return moduleMap.getClosureModule(namespace);
    }
    return null;
  }
1047495
private File locateModule(ModuleIdentifier modID) {
    File modDir = new File(modRoot, modID.toString());
    if (modDir.exists()) {
      return modDir;
    }
    return null;
  }
556810
public String getModulePath()
    {
        ClassLevelCache cache = ClassLevelCache.getCache( getClass() );
        String modulePath = ( String ) cache.getCacheObject( CACHED_INFO_KEY );
        
        if ( modulePath == null )
        {
            modulePath = "/-";
            String className = getClass().getName();
            int lastDot = className.lastIndexOf( '.' );
            if (lastDot != -1) {
                className = className.substring( 0, lastDot );
                modulePath += className.replace( '.', '/' );
            }
            cache.setCacheObject( CACHED_INFO_KEY, modulePath );
        }
        
        return modulePath;
    }
694208
function(_node){
            var _module;
            _node = _node._$getParent();
            while(!!_node){
                _module = _node._$getData().module;
                if (_t2._$isModule(_module)){
                    return _module._$getExportData();
                }
                _node = _node._$getParent();
            }
            return null;
        }
589405
public List<ModuleRef> getModules() {
        if (closed.get()) {
            throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed");
        }
        final List<ModuleRef> moduleRefs = new ArrayList<>();
        for (final ClasspathElement classpathElement : classpathOrder) {
            if (classpathElement instanceof ClasspathElementModule) {
                moduleRefs.add(((ClasspathElementModule) classpathElement).getModuleRef());
            }
        }
        return moduleRefs;
    }
221430
public JSModule getModule() {
    CompilerInput input = getInput();
    return input == null ? null : input.getModule();
  }
237305
public static SimpleModule getModule() {
        SimpleModule module = new SimpleModule();
        module.addSerializer(Headers.class, new HeadersSerializer());
        return module;
    }
785978
def module(self):
        """"""
        if self._module is None:
            root = self
            while self._module is None and root is not None:
                if isinstance(root, Module):
                    self._module = root
                else:
                    root = root.parent

        return self._module
663198
private static Module getModuleFromStreamByID(ModfileInputStream input)
	{
		Iterator<Module> iter = getModulesArray().iterator();
		while (iter.hasNext())
		{
			Module mod = iter.next();
			try 
			{
				if (mod.checkLoadingPossible(input)) return mod;
			}
			catch (IOException ex)
			{
				/* Ignoring */
			}
		}
		return null;
	}
1368274
public static JavaModule of(Object module) {
        if (!JavaType.MODULE.isInstance(module)) {
            throw new IllegalArgumentException("Not a Java module: " + module);
        }
        return new JavaModule(module);
    }
1007717
public static ModuleConfig getModuleConfig( String modulePath, ServletContext context )
    {
        return ( ModuleConfig ) context.getAttribute( Globals.MODULE_KEY + modulePath );
    }
815430
public static SimpleModule getModule() {
        SimpleModule module = new SimpleModule();
        module.addSerializer(Duration.class, new DurationSerializer());
        return module;
    }
929192
public static SimpleModule getTupleMapperModule() {
        SimpleModule module = new SimpleModule("1", Version.unknownVersion());
        SimpleAbstractTypeResolver resolver = getTupleTypeResolver();
        module.setAbstractTypes(resolver);

        module.setKeyDeserializers(new SimpleKeyDeserializers());
        return module;
    }
576656
function getModuleConfig(moduleName) {
                    if (!angular.isString(moduleName)) {
                        throw new Error('You need to give the name of the module to get');
                    }
                    if (!modules[moduleName]) {
                        return null;
                    }
                    return angular.copy(modules[moduleName]);
                }
39479
public static SimpleModule getModule() {
        SimpleModule module = new SimpleModule();
        module.addSerializer(Byte[].class, new ByteArraySerializer());
        return module;
    }
863923
function () {
      let scope = context.getScope();
      while (scope) {
        const node = scope.block && scope.block.parent && scope.block.parent.parent;
        if (node && utils.isES5Component(node)) {
          return node;
        }
        scope = scope.upper;
      }
      return null;
    }
803737
private static Module getModuleFromStream(ModfileInputStream input)
	{
		Iterator<Module> iter = getModulesArray().iterator();
		while (iter.hasNext())
		{
			Module mod = iter.next();
			try 
			{
				Module result = mod.loadModFile(input);
				input.seek(0);
				return result; // <-- here this loading was a success!
			}
			catch (Throwable ex)
			{
				/* Ignoring */
			}
		}
		return null;
	}