| OLD | NEW |
| 1 library reserved_dart_keywords; | 1 library reserved_dart_keywords; |
| 2 | 2 |
| 3 // From https://www.dartlang.org/docs/spec/latest/dart-language-specification.ht
ml#h.huusvrzea3q | 3 // From https://www.dartlang.org/docs/spec/latest/dart-language-specification.ht
ml#h.huusvrzea3q |
| 4 List<String> RESERVED_DART_KEYWORDS = [ | 4 List<String> RESERVED_DART_KEYWORDS = [ |
| 5 "assert", "break", "case", "catch", "class", "const", "continue", | 5 "assert", "break", "case", "catch", "class", "const", "continue", |
| 6 "default", "do", "else", "enum", "extends", "false", "final", | 6 "default", "do", "else", "enum", "extends", "false", "final", |
| 7 "finally", "for", "if", "in", "is", "new", "null", "rethrow", | 7 "finally", "for", "if", "in", "is", "new", "null", "rethrow", |
| 8 "return", "super", "switch", "this", "throw", "true", "try", | 8 "return", "super", "switch", "this", "throw", "true", "try", |
| 9 "var", "void", "while", "with"]; | 9 "var", "void", "while", "with"]; |
| 10 isReserved(String key) => RESERVED_DART_KEYWORDS.contains(key); | 10 isReserved(String key) => RESERVED_DART_KEYWORDS.contains(key); |
| OLD | NEW |