Match the value of the literals.

This commit is contained in:
Roberto Raggi
2009-11-13 15:17:27 +01:00
parent baffd97efb
commit 1a7855af22
3 changed files with 18 additions and 16 deletions

View File

@@ -57,6 +57,9 @@ bool ASTMatcher::matchToken(unsigned tokenIndex, unsigned patternTokenIndex) con
else if (token.is(T_IDENTIFIER)) {
if (! token.identifier->isEqualTo(otherToken.identifier))
return false;
} else if (token.isLiteral()) {
if (! token.literal->isEqualTo(otherToken.literal))
return false;
}
return true;
}