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 1834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1845 String value = name.stringValue; | 1845 String value = name.stringValue; |
1846 if (value == null) { | 1846 if (value == null) { |
1847 return name; | 1847 return name; |
1848 } else if (identical(value, '==')) { | 1848 } else if (identical(value, '==')) { |
1849 return const SourceString(r'operator$eq'); | 1849 return const SourceString(r'operator$eq'); |
1850 } else if (identical(value, '~')) { | 1850 } else if (identical(value, '~')) { |
1851 return const SourceString(r'operator$not'); | 1851 return const SourceString(r'operator$not'); |
1852 } else if (identical(value, '[]')) { | 1852 } else if (identical(value, '[]')) { |
1853 return const SourceString(r'operator$index'); | 1853 return const SourceString(r'operator$index'); |
1854 } else if (identical(value, '[]=')) { | 1854 } else if (identical(value, '[]=')) { |
1855 return const SourceString(r'oprator$indexSet'); | 1855 return const SourceString(r'operator$indexSet'); |
1856 } else if (identical(value, '*')) { | 1856 } else if (identical(value, '*')) { |
1857 return const SourceString(r'operator$mul'); | 1857 return const SourceString(r'operator$mul'); |
1858 } else if (identical(value, '/')) { | 1858 } else if (identical(value, '/')) { |
1859 return const SourceString(r'operator$div'); | 1859 return const SourceString(r'operator$div'); |
1860 } else if (identical(value, '%')) { | 1860 } else if (identical(value, '%')) { |
1861 return const SourceString(r'operator$mod'); | 1861 return const SourceString(r'operator$mod'); |
1862 } else if (identical(value, '~/')) { | 1862 } else if (identical(value, '~/')) { |
1863 return const SourceString(r'operator$tdiv'); | 1863 return const SourceString(r'operator$tdiv'); |
1864 } else if (identical(value, '+')) { | 1864 } else if (identical(value, '+')) { |
1865 return const SourceString(r'operator$add'); | 1865 return const SourceString(r'operator$add'); |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2075 | 2075 |
2076 MetadataAnnotation ensureResolved(Compiler compiler) { | 2076 MetadataAnnotation ensureResolved(Compiler compiler) { |
2077 if (resolutionState == STATE_NOT_STARTED) { | 2077 if (resolutionState == STATE_NOT_STARTED) { |
2078 compiler.resolver.resolveMetadataAnnotation(this); | 2078 compiler.resolver.resolveMetadataAnnotation(this); |
2079 } | 2079 } |
2080 return this; | 2080 return this; |
2081 } | 2081 } |
2082 | 2082 |
2083 String toString() => 'MetadataAnnotation($value, $resolutionState)'; | 2083 String toString() => 'MetadataAnnotation($value, $resolutionState)'; |
2084 } | 2084 } |
OLD | NEW |