parameters: (self, dir, file, skipsinglecolonmatchany)
docstring: Determine all the target patterns of this rule that might match target t.
          @yields a PatternRuleInstance for each.
docstring_summary: Determine all the target patterns of this rule that might match target t.
docstring_tokens: Determine all the target patterns of this rule that might match target t .
function: def matchesfor(self, dir, file, skipsinglecolonmatchany):
          """
          Determine all the target patterns of this rule that might match target t.
          @yields a PatternRuleInstance for each.
          """
  
          for p in self.targetpatterns:
              matchany = p.ismatchany()
              if matchany:
                  if skipsinglecolonmatchany and not self.doublecolon:
                      continue
  
                  yield PatternRuleInstance(self, dir, file, True)
              else:
                  stem = p.match(dir + file)
                  if stem is not None:
                      yield PatternRuleInstance(self, '', stem, False)
                  else:
                      stem = p.match(file)
                      if stem is not None:
                          yield PatternRuleInstance(self, dir, stem, False)
function_tokens: def matchesfor ( self , dir , file , skipsinglecolonmatchany ) : for p in self . targetpatterns : matchany = p . ismatchany ( ) if matchany : if skipsinglecolonmatchany and not self . doublecolon : continue yield PatternRuleInstance ( self , dir , file , True ) else : stem = p . match ( dir + file ) if stem is not None : yield PatternRuleInstance ( self , '' , stem , False ) else : stem = p . match ( file ) if stem is not None : yield PatternRuleInstance ( self , dir , stem , False )