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

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

Issue 1751613002: Remove indexing debug code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 | 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/index_unit.dart
diff --git a/pkg/analyzer/lib/src/summary/index_unit.dart b/pkg/analyzer/lib/src/summary/index_unit.dart
index 0fa4ec868a1d9fdb3feb0f1cd718750d37624030..bd2c0f2098538efa638250922c06c99bb4175c15 100644
--- a/pkg/analyzer/lib/src/summary/index_unit.dart
+++ b/pkg/analyzer/lib/src/summary/index_unit.dart
@@ -106,7 +106,7 @@ class PackageIndexAssembler {
offset = 0;
}
IndexSyntheticElementKind kind = getIndexElementKind(element);
- return new _ElementInfo(element, unitId, offset, kind);
+ return new _ElementInfo(unitId, offset, kind);
});
}
@@ -208,11 +208,6 @@ class _DefinedNameInfo {
*/
class _ElementInfo {
/**
- * TODO(scheglov) remove after fixing build flakiness on bots
- */
- final Element element;
-
- /**
* The identifier of the [CompilationUnitElement] containing this element.
*/
final int unitId;
@@ -233,7 +228,7 @@ class _ElementInfo {
*/
int id;
- _ElementInfo(this.element, this.unitId, this.offset, this.kind);
+ _ElementInfo(this.unitId, this.offset, this.kind);
}
/**
@@ -631,10 +626,6 @@ class _UnitIndexAssembler {
return a.nameId - b.nameId;
});
elementRelations.sort((a, b) {
- if (a.elementInfo.id == null) {
- throw new StateError('No id for ${a.elementInfo.element}, '
- 'location= ${a.elementInfo.element?.location}');
- }
return a.elementInfo.id - b.elementInfo.id;
});
nameRelations.sort((a, b) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698