Skip to content

Commit d63da58

Browse files
committed
Stop using 'augmented' from the element model.
1 parent 8100ccf commit d63da58

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
@@ -107,7 +107,7 @@ class Method extends ModelElement
107107
return null;
108108
}
109109
var parent = element.enclosingElement as InterfaceElement;
110-
for (var t in parent.augmented.declaration.allSupertypes) {
110+
for (var t in parent.allSupertypes) {
111111
Element? e = t.getMethod(element.name);
112112
if (e != null) {
113113
assert(

0 commit comments

Comments
 (0)