Skip to content

Commit d4dff9a

Browse files
authored
Stop using 'augmented' from the element model. (#3878)
1 parent d6b865f commit d4dff9a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/src/model/inheriting_container.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import 'package:meta/meta.dart';
1919
/// Note that [Constructor]s are not considered to be modifiers so a
2020
/// [hasModifiers] override is not necessary for this mixin.
2121
mixin Constructable implements InheritingContainer {
22-
late final List<Constructor> constructors = element.augmented.constructors
22+
late final List<Constructor> constructors = element.constructors
2323
.map((e) => getModelFor(e, library) as Constructor)
2424
.toList(growable: false);
2525

@@ -146,12 +146,12 @@ abstract class InheritingContainer extends Container {
146146

147147
// The mapping of all of the inherited element names to their _concrete_
148148
// implementation element.
149-
var concreteInheritanceMap = packageGraph.inheritanceManager
150-
.getInheritedConcreteMap2(element.augmented.declaration);
149+
var concreteInheritanceMap =
150+
packageGraph.inheritanceManager.getInheritedConcreteMap2(element);
151151
// The mapping of all inherited element names to the nearest inherited
152152
// element that they resolve to.
153-
var inheritanceMap = packageGraph.inheritanceManager
154-
.getInheritedMap2(element.augmented.declaration);
153+
var inheritanceMap =
154+
packageGraph.inheritanceManager.getInheritedMap2(element);
155155

156156
var inheritanceChainElements =
157157
inheritanceChain.map((c) => c.element).toList(growable: false);
@@ -249,7 +249,7 @@ abstract class InheritingContainer extends Container {
249249
}();
250250

251251
@override
252-
late final List<Method> declaredMethods = element.augmented.methods
252+
late final List<Method> declaredMethods = element.methods
253253
.map((e) => getModelFor(e, library) as Method)
254254
.toList(growable: false);
255255

lib/src/model/method.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class Method extends ModelElement
124124
return null;
125125
}
126126
var parent = element.enclosingElement3 as InterfaceElement;
127-
for (var t in parent.augmented.declaration.allSupertypes) {
127+
for (var t in parent.allSupertypes) {
128128
Element? e = t.getMethod(element.name);
129129
if (e != null) {
130130
assert(

0 commit comments

Comments
 (0)