parameters: (self)
return_statement: return sorted(input_files)
docstring: Returns the list of files that are read to produce the output.
docstring_summary: Returns the list of files that are read to produce the output.
docstring_tokens: Returns the list of files that are read to produce the output .
function: def GetInputFiles(self):
      """Returns the list of files that are read to produce the output."""
  
      # Importing this here avoids a circular dependency in the imports.
      # pylint: disable-msg=C6204
      from grit.node import include
      from grit.node import misc
      from grit.node import structure
      from grit.node import variant
  
      # Check if the input is required for any output configuration.
      input_files = set()
      old_output_language = self.output_language
      for lang, ctx, fallback in self.GetConfigurations():
        self.SetOutputLanguage(lang or self.GetSourceLanguage())
        self.SetOutputContext(ctx)
        self.SetFallbackToDefaultLayout(fallback)
  
        for node in self.ActiveDescendants():
          if isinstance(node, (io.FileNode, include.IncludeNode, misc.PartNode,
                               structure.StructureNode, variant.SkeletonNode)):
            input_path = node.GetInputPath()
            if input_path is not None:
              input_files.add(self.ToRealPath(input_path))
  
            # If it's a flattened node, grab inlined resources too.
            if ((node.name == 'structure' or node.name == 'include')
                and node.attrs['flattenhtml'] == 'true'):
              if node.name == 'structure':
                node.RunPreSubstitutionGatherer()
              input_files.update(node.GetHtmlResourceFilenames())
  
      self.SetOutputLanguage(old_output_language)
      return sorted(input_files)
function_tokens: def GetInputFiles ( self ) : # Importing this here avoids a circular dependency in the imports. # pylint: disable-msg=C6204 from grit . node import include from grit . node import misc from grit . node import structure from grit . node import variant # Check if the input is required for any output configuration. input_files = set ( ) old_output_language = self . output_language for lang , ctx , fallback in self . GetConfigurations ( ) : self . SetOutputLanguage ( lang or self . GetSourceLanguage ( ) ) self . SetOutputContext ( ctx ) self . SetFallbackToDefaultLayout ( fallback ) for node in self . ActiveDescendants ( ) : if isinstance ( node , ( io . FileNode , include . IncludeNode , misc . PartNode , structure . StructureNode , variant . SkeletonNode ) ) : input_path = node . GetInputPath ( ) if input_path is not None : input_files . add ( self . ToRealPath ( input_path ) ) # If it's a flattened node, grab inlined resources too. if ( ( node . name == 'structure' or node . name == 'include' ) and node . attrs [ 'flattenhtml' ] == 'true' ) : if node . name == 'structure' : node . RunPreSubstitutionGatherer ( ) input_files . update ( node . GetHtmlResourceFilenames ( ) ) self . SetOutputLanguage ( old_output_language ) return sorted ( input_files )