(textValue: string)
| 79 | const validNumberRegex = /^-?[0-9]+(\.[0-9]*)?$/ |
| 80 | |
| 81 | function isValidNumber(textValue: string): boolean { |
| 82 | return textValue.length > 0 && !!textValue.match(validNumberRegex) |
| 83 | } |
| 84 | |
| 85 | export class PythonNumberLiteral extends PythonNode { |
| 86 | constructor(parentReference: ParentReference, value: string) { |
no outgoing calls
no test coverage detected