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

Unified Diff: lib/config.dart

Issue 977613002: Make int and double nullable by default (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Optimize away some nonnull checks Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/src/codegen/js_codegen.dart » ('j') | lib/src/codegen/js_codegen.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/config.dart
diff --git a/lib/config.dart b/lib/config.dart
index 921e368129a704d376752dcc08d8679df603969c..98ce6ab7c94bbbdd19904657c3ff2261cbfa68ac 100644
--- a/lib/config.dart
+++ b/lib/config.dart
@@ -7,7 +7,8 @@ library ddc.config;
// Options shared by the compiler and runtime.
class TypeOptions {
- static const NONNULLABLE_TYPES = const <String>['int', 'double'];
+ // A list of non-nullable type names (e.g., 'int')
+ static const List<String> NONNULLABLE_TYPES = const <String>[];
final List<String> nonnullableTypes;
TypeOptions({this.nonnullableTypes: NONNULLABLE_TYPES});
« no previous file with comments | « no previous file | lib/src/codegen/js_codegen.dart » ('j') | lib/src/codegen/js_codegen.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698