Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(471)

Side by Side Diff: pkg/analyzer/lib/src/dart/analysis/driver.dart

Issue 2842573002: Allow 'extract index' in top-level inference. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/strong/checker.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:collection'; 6 import 'dart:collection';
7 import 'dart:typed_data'; 7 import 'dart:typed_data';
8 8
9 import 'package:analyzer/context/context_root.dart'; 9 import 'package:analyzer/context/context_root.dart';
10 import 'package:analyzer/context/declared_variables.dart'; 10 import 'package:analyzer/context/declared_variables.dart';
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 * results are "eventually consistent" with the file system by simply calling 68 * results are "eventually consistent" with the file system by simply calling
69 * [changeFile] any time the contents of a file on the file system have changed. 69 * [changeFile] any time the contents of a file on the file system have changed.
70 * 70 *
71 * 71 *
72 * TODO(scheglov) Clean up the list of implicitly analyzed files. 72 * TODO(scheglov) Clean up the list of implicitly analyzed files.
73 */ 73 */
74 class AnalysisDriver implements AnalysisDriverGeneric { 74 class AnalysisDriver implements AnalysisDriverGeneric {
75 /** 75 /**
76 * The version of data format, should be incremented on every format change. 76 * The version of data format, should be incremented on every format change.
77 */ 77 */
78 static const int DATA_VERSION = 33; 78 static const int DATA_VERSION = 34;
79 79
80 /** 80 /**
81 * The number of exception contexts allowed to write. Once this field is 81 * The number of exception contexts allowed to write. Once this field is
82 * zero, we stop writing any new exception contexts in this process. 82 * zero, we stop writing any new exception contexts in this process.
83 */ 83 */
84 static int allowedNumberOfContextsToWrite = 10; 84 static int allowedNumberOfContextsToWrite = 10;
85 85
86 /** 86 /**
87 * The scheduler that schedules analysis work in this, and possibly other 87 * The scheduler that schedules analysis work in this, and possibly other
88 * analysis drivers. 88 * analysis drivers.
(...skipping 2012 matching lines...) Expand 10 before | Expand all | Expand 10 after
2101 libraryDeclarations.add(new TopLevelDeclarationInSource( 2101 libraryDeclarations.add(new TopLevelDeclarationInSource(
2102 file.source, declaration, isExported)); 2102 file.source, declaration, isExported));
2103 } 2103 }
2104 } 2104 }
2105 } 2105 }
2106 2106
2107 // We're not done yet. 2107 // We're not done yet.
2108 return false; 2108 return false;
2109 } 2109 }
2110 } 2110 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/strong/checker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698