@@ -215,20 +215,19 @@ class PackageGraph with CommentReferable, Nameable, ModelBuilder {
215215 ///
216216 /// This mapping must be complete before [initializePackageGraph] is called.
217217 @visibleForTesting
218- final allLibraries = < String , Library > {};
218+ final Map <String , Library > allLibraries = {};
219219
220220 /// All [ModelElement] s constructed for this package; a superset of
221221 /// [_allModelElements] .
222- final HashMap <Tuple3 <Element , Library , Container ?>, ModelElement ?>
223- allConstructedModelElements =
224- HashMap <Tuple3 <Element , Library , Container ?>, ModelElement ?>();
222+ final Map <Tuple3 <Element , Library , Container ?>, ModelElement ?>
223+ allConstructedModelElements = {};
225224
226225 /// Anything that might be inheritable, place here for later lookup.
227- final allInheritableElements =
228- HashMap < Tuple2 < Element , Library >, Set < ModelElement >>() ;
226+ final Map < Tuple2 < Element , Library >, Set < ModelElement >>
227+ allInheritableElements = {} ;
229228
230229 /// A mapping of the list of classes which implement each class.
231- final _implementors =
230+ final Map < InheritingContainer , List < InheritingContainer >> _implementors =
232231 LinkedHashMap <InheritingContainer , List <InheritingContainer >>(
233232 equals: (InheritingContainer a, InheritingContainer b) =>
234233 a.definingContainer == b.definingContainer,
@@ -857,7 +856,8 @@ class PackageGraph with CommentReferable, Nameable, ModelBuilder {
857856 // might not be where the element was defined, which is what's important
858857 // for nodoc's semantics. Looking up the defining element just to pull
859858 // a context is again, slow.
860- var globs = config.optionSet['nodoc' ].valueAt (file.parent);
859+ var globs = (config.optionSet['nodoc' ].valueAt (file.parent) as List )
860+ .cast <String >();
861861 return utils.matchGlobs (globs, fullName);
862862 });
863863 }
0 commit comments