@@ -168,21 +168,26 @@ class DartUri {
168
168
/// We store this here because for tests we may want to act as if we're
169
169
/// running in the directory of a target package, even if the current
170
170
/// 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
+ }
176
175
177
176
static set currentDirectory (String newDir) {
177
+ print ('Setting current directory: $newDir ' );
178
178
_currentDirectory = newDir;
179
- if (tmp) _currentDirectoryUri = '${p .toUri (newDir )}' ;
179
+ print ('Setting current directory uri: ${p .toUri (newDir )}' );
180
+ _currentDirectoryUri = '${p .toUri (newDir )}' ;
180
181
}
181
182
182
183
static String _currentDirectoryUri = '${p .toUri (currentDirectory )}' ;
183
184
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
+ }
186
191
187
192
/// Record library and script uris to enable resolving library and script paths.
188
193
static Future <void > initialize () async {
0 commit comments