@@ -168,21 +168,26 @@ class DartUri {
168168 /// We store this here because for tests we may want to act as if we're
169169 /// running in the directory of a target package, even if the current
170170 /// directory of the tests is actually the main dwds directory.
171- static String get currentDirectory => _currentDirectory;
172-
173- // TODO(srujzs): This is temporary to debug test failures and avoid analysis
174- // issues. Remove.
175- static bool tmp = false ;
171+ static String get currentDirectory {
172+ print ('Getting current directory: $_currentDirectory ' );
173+ return _currentDirectory;
174+ }
176175
177176 static set currentDirectory (String newDir) {
177+ print ('Setting current directory: $newDir ' );
178178 _currentDirectory = newDir;
179- if (tmp) _currentDirectoryUri = '${p .toUri (newDir )}' ;
179+ print ('Setting current directory uri: ${p .toUri (newDir )}' );
180+ _currentDirectoryUri = '${p .toUri (newDir )}' ;
180181 }
181182
182183 static String _currentDirectoryUri = '${p .toUri (currentDirectory )}' ;
183184
184- /// The current directory as a file: Uri, saved here to avoid re-computing.
185- static String get currentDirectoryUri => _currentDirectoryUri;
185+ /// The current directory as a file: Uri, saved in a field to avoid
186+ /// re-computing.
187+ static String get currentDirectoryUri {
188+ print ('Getting current directory uri: $_currentDirectoryUri ' );
189+ return _currentDirectoryUri;
190+ }
186191
187192 /// Record library and script uris to enable resolving library and script paths.
188193 static Future <void > initialize () async {
0 commit comments