@@ -451,7 +451,6 @@ class Compiler implements BridgeDeclarationRegistry, EvalPluginRegistry {
451451      final  alreadyCompiled =  < AstNode > {};
452452
453453      // We iterate once to gather consts for sorting and compile non-const statics immediately. 
454- 
455454      final  constDeclarationsByContainer = 
456455          < AstNode , List <_ConstDeclarationInfo >> {};
457456
@@ -1316,37 +1315,27 @@ class _Import {
13161315  }
13171316}
13181317
1319- // Helper class to hold const declarations for sorting 
13201318class  _ConstDeclarationInfo  {
13211319  _ConstDeclarationInfo (this .variable, this .parent, this .libraryIndex);
13221320
1323-   /// The VariableDeclaration itself (e.g., `b = 1.0` ). 
13241321  final  VariableDeclaration  variable;
13251322
1326-   /// The parent node (either a TopLevelVariableDeclaration or a ClassDeclaration). 
13271323  final  AstNode  parent;
13281324
1329-   /// The library index where this declaration is defined. 
13301325  final  int  libraryIndex;
13311326
13321327  String  get  name =>  variable.name.lexeme;
13331328}
13341329
1335- // Add this class at the end of compiler.dart 
1336- 
1337- /// A simple visitor to find identifiers within an expression that match a given set of names. 
13381330class  _DependencyVisitor  extends  RecursiveAstVisitor <void > {
13391331  _DependencyVisitor (this .availableNames);
13401332
1341-   /// The set of all possible dependency names we are looking for (e.g., all static const fields in the class). 
13421333  final  Set <String > availableNames;
13431334
1344-   /// The set of dependencies found in the visited expression. 
13451335  final  Set <String > dependencies =  {};
13461336
13471337  @override 
13481338  void  visitSimpleIdentifier (SimpleIdentifier  node) {
1349-     // If this identifier is one of the fields we are analyzing, it's a dependency. 
13501339    if  (availableNames.contains (node.name)) {
13511340      dependencies.add (node.name);
13521341    }
0 commit comments