If token has a known int value then return that. Otherwise returns None
(self)
| 488 | return None |
| 489 | |
| 490 | def getKnownIntValue(self): |
| 491 | """ |
| 492 | If token has a known int value then return that. |
| 493 | Otherwise returns None |
| 494 | """ |
| 495 | if not self.values: |
| 496 | return None |
| 497 | for value in self.values: |
| 498 | if value.valueKind == 'known': |
| 499 | return value.intvalue |
| 500 | return None |
| 501 | |
| 502 | def isUnaryOp(self, op): |
| 503 | return self.astOperand1 and (self.astOperand2 is None) and self.str == op |
no outgoing calls