55// DO NOT EDIT. This file was generated from async_environment.dart.
66// See tool/grind/synchronize.dart for details.
77//
8- // Checksum: 38c688423116df1e489aa6eafc16de1bf9bc2bf5
8+ // Checksum: 487c34d7387b6f368ed60ff2db6a748483aba2a1
99//
1010// ignore_for_file: unused_import
1111
@@ -808,11 +808,14 @@ class Environment {
808808 }
809809
810810 /// Returns a module that represents the top-level members defined in [this] ,
811- /// that contains [css] as its CSS tree, which can be extended using
812- /// [extensionStore] .
813- Module <Callable > toModule (CssStylesheet css, ExtensionStore extensionStore) {
811+ /// that contains [css] and [preModuleComments] as its CSS, which can be
812+ /// extended using [extensionStore] .
813+ Module <Callable > toModule (
814+ CssStylesheet css,
815+ Map <Module <Callable >, List <CssComment >> preModuleComments,
816+ ExtensionStore extensionStore) {
814817 assert (atRoot);
815- return _EnvironmentModule (this , css, extensionStore,
818+ return _EnvironmentModule (this , css, preModuleComments, extensionStore,
816819 forwarded: _forwardedModules.andThen ((modules) => MapKeySet (modules)));
817820 }
818821
@@ -827,6 +830,7 @@ class Environment {
827830 this ,
828831 CssStylesheet (const [],
829832 SourceFile .decoded (const [], url: "<dummy module>" ).span (0 )),
833+ const {},
830834 ExtensionStore .empty,
831835 forwarded: _forwardedModules.andThen ((modules) => MapKeySet (modules)));
832836 }
@@ -909,6 +913,7 @@ class _EnvironmentModule implements Module<Callable> {
909913 final Map <String , Callable > mixins;
910914 final ExtensionStore extensionStore;
911915 final CssStylesheet css;
916+ final Map <Module <Callable >, List <CssComment >> preModuleComments;
912917 final bool transitivelyContainsCss;
913918 final bool transitivelyContainsExtensions;
914919
@@ -924,12 +929,19 @@ class _EnvironmentModule implements Module<Callable> {
924929 final Map <String , Module <Callable >> _modulesByVariable;
925930
926931 factory _EnvironmentModule (
927- Environment environment, CssStylesheet css, ExtensionStore extensionStore,
932+ Environment environment,
933+ CssStylesheet css,
934+ Map <Module <Callable >, List <CssComment >> preModuleComments,
935+ ExtensionStore extensionStore,
928936 {Set <Module <Callable >>? forwarded}) {
929937 forwarded ?? = const {};
930938 return _EnvironmentModule ._(
931939 environment,
932940 css,
941+ Map .unmodifiable ({
942+ for (var entry in preModuleComments.entries)
943+ entry.key: List <CssComment >.unmodifiable (entry.value)
944+ }),
933945 extensionStore,
934946 _makeModulesByVariable (forwarded),
935947 _memberMap (environment._variables.first,
@@ -941,6 +953,7 @@ class _EnvironmentModule implements Module<Callable> {
941953 _memberMap (environment._mixins.first,
942954 forwarded.map ((module) => module.mixins)),
943955 transitivelyContainsCss: css.children.isNotEmpty ||
956+ preModuleComments.isNotEmpty ||
944957 environment._allModules
945958 .any ((module) => module.transitivelyContainsCss),
946959 transitivelyContainsExtensions: ! extensionStore.isEmpty ||
@@ -989,6 +1002,7 @@ class _EnvironmentModule implements Module<Callable> {
9891002 _EnvironmentModule ._(
9901003 this ._environment,
9911004 this .css,
1005+ this .preModuleComments,
9921006 this .extensionStore,
9931007 this ._modulesByVariable,
9941008 this .variables,
@@ -1028,6 +1042,7 @@ class _EnvironmentModule implements Module<Callable> {
10281042 return _EnvironmentModule ._(
10291043 _environment,
10301044 newCssAndExtensionStore.item1,
1045+ preModuleComments,
10311046 newCssAndExtensionStore.item2,
10321047 _modulesByVariable,
10331048 variables,
0 commit comments