| Index: dart/frog/leg/scanner/token.dart
|
| diff --git a/dart/frog/leg/scanner/token.dart b/dart/frog/leg/scanner/token.dart
|
| index 86428a5afc3859f26c228ac30b150a98d0394e3e..2e4676d2e840c67fad9f6526575b325e3a0f4e53 100644
|
| --- a/dart/frog/leg/scanner/token.dart
|
| +++ b/dart/frog/leg/scanner/token.dart
|
| @@ -198,6 +198,31 @@ class BeginGroupToken extends StringToken {
|
| : super(info, value, charOffset);
|
| }
|
|
|
| +bool isUserDefinableOperator(String value) {
|
| + return
|
| + (value === '==') ||
|
| + (value === '~') ||
|
| + (value === 'negate') ||
|
| + (value === '[]') ||
|
| + (value === '[]=') ||
|
| + (value === '*') ||
|
| + (value === '/') ||
|
| + (value === '%') ||
|
| + (value === '~/') ||
|
| + (value === '+') ||
|
| + (value === '-') ||
|
| + (value === '<<') ||
|
| + (value === '>>>') ||
|
| + (value === '>>') ||
|
| + (value === '>=') ||
|
| + (value === '>') ||
|
| + (value === '<=') ||
|
| + (value === '<') ||
|
| + (value === '&') ||
|
| + (value === '^') ||
|
| + (value === '|');
|
| +}
|
| +
|
| class PrecedenceInfo {
|
| final SourceString value;
|
| final int precedence;
|
|
|