OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 import '../common.dart'; | 5 import '../common.dart'; |
6 import '../common/backend_api.dart' show BackendClasses, ForeignResolver; | 6 import '../common/backend_api.dart' show BackendClasses, ForeignResolver; |
7 import '../common/resolution.dart' show ParsingContext, Resolution; | 7 import '../common/resolution.dart' show ParsingContext, Resolution; |
8 import '../compiler.dart' show Compiler; | 8 import '../compiler.dart' show Compiler; |
9 import '../compile_time_constants.dart' show ConstantEnvironment; | 9 import '../compile_time_constants.dart' show ConstantEnvironment; |
10 import '../constants/expressions.dart'; | 10 import '../constants/expressions.dart'; |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 /// <gvn-string> values are 'true' and 'false'. The default if unspecified | 255 /// <gvn-string> values are 'true' and 'false'. The default if unspecified |
256 /// is 'false'. | 256 /// is 'false'. |
257 /// | 257 /// |
258 /// <new-string> values are 'true' and 'false'. The default if unspecified | 258 /// <new-string> values are 'true' and 'false'. The default if unspecified |
259 /// is 'false'. A 'true' value means that each evaluation returns a fresh | 259 /// is 'false'. A 'true' value means that each evaluation returns a fresh |
260 /// (new) object that cannot be unaliased with existing objects. | 260 /// (new) object that cannot be unaliased with existing objects. |
261 /// | 261 /// |
262 /// Each tag kind (including the 'type-tag's) can only occur once in the | 262 /// Each tag kind (including the 'type-tag's) can only occur once in the |
263 /// sequence. | 263 /// sequence. |
264 /// | 264 /// |
265 /// [specString] is the specification string, [lookupType] resolves named | 265 /// [specString] is the specification string, [resolveType] resolves named |
266 /// types into type values, [typesReturned] and [typesInstantiated] collects | 266 /// types into type values, [typesReturned] and [typesInstantiated] collects |
267 /// the types defined by the specification string, and [objectType] and | 267 /// the types defined by the specification string, and [objectType] and |
268 /// [nullType] define the types for `Object` and `Null`, respectively. The | 268 /// [nullType] define the types for `Object` and `Null`, respectively. The |
269 /// latter is used for the type strings of the form '' and 'var'. | 269 /// latter is used for the type strings of the form '' and 'var'. |
270 /// [validTags] can be used to restrict which tags are accepted. | 270 /// [validTags] can be used to restrict which tags are accepted. |
271 static void processSpecString( | 271 static void processSpecString( |
272 DiagnosticReporter reporter, Spannable spannable, String specString, | 272 DiagnosticReporter reporter, Spannable spannable, String specString, |
273 {Iterable<String> validTags, | 273 {Iterable<String> validTags, |
274 void setSideEffects(SideEffects newEffects), | 274 void setSideEffects(SideEffects newEffects), |
275 void setThrows(NativeThrowBehavior throwKind), | 275 void setThrows(NativeThrowBehavior throwKind), |
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1058 JavaScriptBackend backend = compiler.backend; | 1058 JavaScriptBackend backend = compiler.backend; |
1059 return backend.helpers; | 1059 return backend.helpers; |
1060 } | 1060 } |
1061 | 1061 |
1062 @override | 1062 @override |
1063 BackendClasses get backendClasses => compiler.backend.backendClasses; | 1063 BackendClasses get backendClasses => compiler.backend.backendClasses; |
1064 | 1064 |
1065 @override | 1065 @override |
1066 Resolution get resolution => compiler.resolution; | 1066 Resolution get resolution => compiler.resolution; |
1067 } | 1067 } |
OLD | NEW |