Example #1
0
 public void Merge(FileFeatureStatistics featureStatistics)
 {
     if (featureStatistics.HasBinaryNumbers)
     {
         _hasBinaryNumbers++;
     }
     if (featureStatistics.HasCComments)
     {
         _hasCComments++;
     }
     if (featureStatistics.HasCompoundAssignments)
     {
         _hasCompoundAssignments++;
     }
     if (featureStatistics.HasEmptyStatements)
     {
         _hasEmptyStatements++;
     }
     if (featureStatistics.HasCBooleanOperators)
     {
         _hasCBooleanOperators++;
     }
     if (featureStatistics.HasGoto)
     {
         _hasGoto++;
     }
     if (featureStatistics.HasHexEscapesInStrings)
     {
         _hasHexEscapesInStrings++;
     }
     if (featureStatistics.HasHexFloatLiterals)
     {
         _hasHexFloatLiterals++;
     }
     if (featureStatistics.HasOctalNumbers)
     {
         _hasOctalNumbers++;
     }
     if (featureStatistics.HasShebang)
     {
         _hasShebang++;
     }
     if (featureStatistics.HasUnderscoreInNumericLiterals)
     {
         _hasUnderscoreInNumericLiterals++;
     }
     if (featureStatistics.HasLuajitIdentifiers)
     {
         _hasLuajitIdentifiers++;
     }
 }
 public void Merge(FileFeatureStatistics other)
 {
     HasBinaryNumbers       |= other.HasBinaryNumbers;
     HasCComments           |= other.HasCComments;
     HasCompoundAssignments |= other.HasCompoundAssignments;
     HasEmptyStatements     |= other.HasEmptyStatements;
     HasCBooleanOperators   |= other.HasCBooleanOperators;
     HasGoto |= other.HasGoto;
     HasHexEscapesInStrings         |= other.HasHexEscapesInStrings;
     HasHexFloatLiterals            |= other.HasHexFloatLiterals;
     HasOctalNumbers                |= other.HasOctalNumbers;
     HasShebang                     |= other.HasShebang;
     HasUnderscoreInNumericLiterals |= other.HasUnderscoreInNumericLiterals;
     HasLuajitIdentifiers           |= other.HasLuajitIdentifiers;
     ContinueType                   |= other.ContinueType;
 }