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

Unified Diff: pkg/analyzer/lib/src/summary/resynthesize.dart

Issue 2032663002: Start making constructor elements lazy. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/resynthesize.dart
diff --git a/pkg/analyzer/lib/src/summary/resynthesize.dart b/pkg/analyzer/lib/src/summary/resynthesize.dart
index 0b3ac6b21cba5e9510d462425590fd2a0430bcac..0cb986d52f044cf2262dd1a45f12e03ef250bbff 100644
--- a/pkg/analyzer/lib/src/summary/resynthesize.dart
+++ b/pkg/analyzer/lib/src/summary/resynthesize.dart
@@ -1780,16 +1780,7 @@ class _UnitResynthesizer {
ClassElementImpl classElement, ElementHolder holder) {
assert(serializedExecutable.kind == UnlinkedExecutableKind.constructor);
currentConstructor = new ConstructorElementImpl.forSerialized(
- serializedExecutable, classElement);
- currentConstructor.isCycleFree = serializedExecutable.isConst &&
- !constCycles.contains(serializedExecutable.constCycleSlot);
- if (serializedExecutable.name.isEmpty) {
- currentConstructor.nameEnd =
- serializedExecutable.nameOffset + classElement.name.length;
- } else {
- currentConstructor.nameEnd = serializedExecutable.nameEnd;
- currentConstructor.periodOffset = serializedExecutable.periodOffset;
- }
+ serializedExecutable, constCycles, classElement);
constructors[serializedExecutable.name] = currentConstructor;
currentConstructor.constantInitializers = serializedExecutable
.constantInitializers
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698