File tree 2 files changed +9
-2
lines changed 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -3488,13 +3488,13 @@ class ParseDartTask extends SourceBasedAnalysisTask {
3488
3488
/**
3489
3489
* Return a map from the names of the inputs of this kind of task to the task
3490
3490
* input descriptors describing those inputs for a task with the given
3491
- * [source ] .
3491
+ * [target ] .
3492
3492
*/
3493
3493
static Map <String , TaskInput > buildInputs (AnalysisTarget target) {
3494
3494
return < String , TaskInput > {
3495
3495
LINE_INFO_INPUT_NAME : LINE_INFO .of (target),
3496
3496
MODIFICATION_TIME_INPUT_NAME : MODIFICATION_TIME .of (target),
3497
- TOKEN_STREAM_INPUT_NAME : TOKEN_STREAM .of (target)
3497
+ TOKEN_STREAM_INPUT_NAME : TOKEN_STREAM .of (target, flushOnAccess : true )
3498
3498
};
3499
3499
}
3500
3500
Original file line number Diff line number Diff line change @@ -2913,6 +2913,13 @@ part 'test.dart';
2913
2913
expect (outputs[UNITS ], hasLength (1 ));
2914
2914
}
2915
2915
2916
+ test_perform_flushTokenStream () {
2917
+ _performParseTask (r'''
2918
+ class Test {}
2919
+ ''' );
2920
+ expect (analysisCache.getState (source, TOKEN_STREAM ), CacheState .FLUSHED );
2921
+ }
2922
+
2916
2923
test_perform_invalidDirectives () {
2917
2924
_performParseTask (r'''
2918
2925
library lib;
You can’t perform that action at this time.
0 commit comments