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

Unified Diff: pkg/compiler/lib/src/dart_types.dart

Issue 1811173003: Support per-library serialization. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 4 years, 9 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 | pkg/compiler/lib/src/elements/common.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dart_types.dart
diff --git a/pkg/compiler/lib/src/dart_types.dart b/pkg/compiler/lib/src/dart_types.dart
index 23080fc8440abef05a3b2c527bcab7483339bbb1..8df9c18c1b107b09c162878e219188e5b3720bd7 100644
--- a/pkg/compiler/lib/src/dart_types.dart
+++ b/pkg/compiler/lib/src/dart_types.dart
@@ -352,6 +352,8 @@ abstract class GenericType extends DartType {
this.typeArguments,
{bool checkTypeArgumentCount: true})
: this.element = element {
+ assert(invariant(CURRENT_ELEMENT_SPANNABLE, element != null,
+ message: "Missing element for generic type."));
assert(invariant(element, () {
if (!checkTypeArgumentCount) return true;
if (element is TypeDeclarationElementX) {
« no previous file with comments | « no previous file | pkg/compiler/lib/src/elements/common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698