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

Side by Side Diff: test/regression/other/analysis_server.unit

Issue 1355203002: Handle index expressions in the middle of call chains. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Handle chained indexes. Created 5 years, 3 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 | « lib/src/source_visitor.dart ('k') | test/splitting/invocations.stmt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 >>> (indent 2) 1 >>> (indent 2)
2 main() { 2 main() {
3 List<Future<List<LocationImpl>>> nodeFutures = 3 List<Future<List<LocationImpl>>> nodeFutures =
4 <Future<List<LocationImpl>>>[]; 4 <Future<List<LocationImpl>>>[];
5 } 5 }
6 <<< 6 <<<
7 main() { 7 main() {
8 List<Future<List<LocationImpl>>> nodeFutures = 8 List<Future<List<LocationImpl>>> nodeFutures =
9 <Future<List<LocationImpl>>>[]; 9 <Future<List<LocationImpl>>>[];
10 } 10 }
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // TODO(johnniwinther): Support closure variables. 239 // TODO(johnniwinther): Support closure variables.
240 new Set<dart2js.Local>()), () { 240 new Set<dart2js.Local>()), () {
241 irBuilder.buildFunctionHeader( 241 irBuilder.buildFunctionHeader(
242 constructor.parameters.map(converter.convertElement)); 242 constructor.parameters.map(converter.convertElement));
243 // Visit the body directly to avoid processing the signature as 243 // Visit the body directly to avoid processing the signature as
244 // expressions. 244 // expressions.
245 // Call to allow for `body == null` in case of synthesized constructors. 245 // Call to allow for `body == null` in case of synthesized constructors.
246 build(body); 246 build(body);
247 return irBuilder.makeConstructorDefinition(const [], const []); 247 return irBuilder.makeConstructorDefinition(const [], const []);
248 }); 248 });
249 } 249 }
250 >>> (indent 4)
251 Element expectedElement = (declarations[0] as TopLevelVariableDeclaration)
252 .variables
253 .variables[0]
254 .name
255 .staticElement;
256 <<<
257 Element expectedElement = (declarations[0] as TopLevelVariableDeclaration)
258 .variables
259 .variables[0]
260 .name
261 .staticElement;
OLDNEW
« no previous file with comments | « lib/src/source_visitor.dart ('k') | test/splitting/invocations.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698