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

Unified Diff: pkg/analyzer/lib/src/dart/element/element.dart

Issue 2849893002: Set 'enclosingElement' for FunctionElementImpl_forLUB. (Closed)
Patch Set: Created 3 years, 8 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/analyzer/lib/src/summary/resynthesize.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/element/element.dart
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart
index a22e9bb6f08c0413fe692e249ce20622cb2aa803..cbf2bfc4433fb89868694740f044f409feacb908 100644
--- a/pkg/analyzer/lib/src/dart/element/element.dart
+++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -4543,17 +4543,10 @@ class FunctionElementImpl_forFunctionTypedParameter
* that was synthesized by a LUB computation.
*/
class FunctionElementImpl_forLUB extends FunctionElementImpl {
- @override
- final CompilationUnitElementImpl enclosingUnit;
-
- @override
- final TypeParameterizedElementMixin enclosingTypeParameterContext;
-
final EntityRef _entityRef;
- FunctionElementImpl_forLUB(
- this.enclosingUnit, this.enclosingTypeParameterContext, this._entityRef)
- : super('', -1);
+ FunctionElementImpl_forLUB(ElementImpl enclosingElement, this._entityRef)
+ : super.forSerialized(null, enclosingElement);
@override
bool get isSynthetic => true;
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/resynthesize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698