Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: pkg/compiler/lib/src/native/behavior.dart

Issue 2710973002: Revert "Add support for the new function-type syntax." (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/kernel_visitor.dart ('k') | pkg/compiler/lib/src/parser/diet_parser_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698