dce0b514d4
This defers literals, to effectively split binary size for libraries that are more data than code, such as localizations. TEST=ci Bug: https://github.com/dart-lang/sdk/issues/41974 Change-Id: I506722037cc0247b90756959e6a6f12bb5021b5c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/183781 Reviewed-by: Alexander Markov <alexmarkov@google.com> Reviewed-by: Siva Annamalai <asiva@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
13 lines
469 B
Dart
13 lines
469 B
Dart
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
import "split_literals.dart";
|
|
|
|
void foo() {
|
|
print("Deferred literal!");
|
|
print(const <String>["Deferred literal in a list!"]);
|
|
print(const <String, String>{"key": "Deferred literal in a map!"});
|
|
print(const Box("Deferred literal in a box!"));
|
|
}
|