OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library elements; | 5 library elements; |
6 | 6 |
7 import 'dart:uri'; | 7 import 'dart:uri'; |
8 | 8 |
9 // TODO(ahe): Rename prefix to 'api' when VM bug is fixed. | 9 // TODO(ahe): Rename prefix to 'api' when VM bug is fixed. |
10 import '../../compiler.dart' as api_e; | 10 import '../../compiler.dart' as api_e; |
(...skipping 1810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1821 String value = name.stringValue; | 1821 String value = name.stringValue; |
1822 if (value == null) { | 1822 if (value == null) { |
1823 return name; | 1823 return name; |
1824 } else if (identical(value, '==')) { | 1824 } else if (identical(value, '==')) { |
1825 return const SourceString(r'operator$eq'); | 1825 return const SourceString(r'operator$eq'); |
1826 } else if (identical(value, '~')) { | 1826 } else if (identical(value, '~')) { |
1827 return const SourceString(r'operator$not'); | 1827 return const SourceString(r'operator$not'); |
1828 } else if (identical(value, '[]')) { | 1828 } else if (identical(value, '[]')) { |
1829 return const SourceString(r'operator$index'); | 1829 return const SourceString(r'operator$index'); |
1830 } else if (identical(value, '[]=')) { | 1830 } else if (identical(value, '[]=')) { |
1831 return const SourceString(r'oprator$indexSet'); | 1831 return const SourceString(r'operator$indexSet'); |
1832 } else if (identical(value, '*')) { | 1832 } else if (identical(value, '*')) { |
1833 return const SourceString(r'operator$mul'); | 1833 return const SourceString(r'operator$mul'); |
1834 } else if (identical(value, '/')) { | 1834 } else if (identical(value, '/')) { |
1835 return const SourceString(r'operator$div'); | 1835 return const SourceString(r'operator$div'); |
1836 } else if (identical(value, '%')) { | 1836 } else if (identical(value, '%')) { |
1837 return const SourceString(r'operator$mod'); | 1837 return const SourceString(r'operator$mod'); |
1838 } else if (identical(value, '~/')) { | 1838 } else if (identical(value, '~/')) { |
1839 return const SourceString(r'operator$tdiv'); | 1839 return const SourceString(r'operator$tdiv'); |
1840 } else if (identical(value, '+')) { | 1840 } else if (identical(value, '+')) { |
1841 return const SourceString(r'operator$add'); | 1841 return const SourceString(r'operator$add'); |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2051 | 2051 |
2052 MetadataAnnotation ensureResolved(Compiler compiler) { | 2052 MetadataAnnotation ensureResolved(Compiler compiler) { |
2053 if (resolutionState == STATE_NOT_STARTED) { | 2053 if (resolutionState == STATE_NOT_STARTED) { |
2054 compiler.resolver.resolveMetadataAnnotation(this); | 2054 compiler.resolver.resolveMetadataAnnotation(this); |
2055 } | 2055 } |
2056 return this; | 2056 return this; |
2057 } | 2057 } |
2058 | 2058 |
2059 String toString() => 'MetadataAnnotation($value, $resolutionState)'; | 2059 String toString() => 'MetadataAnnotation($value, $resolutionState)'; |
2060 } | 2060 } |
OLD | NEW |