OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library dart_style.src.argument_list_visitor; | 5 library dart_style.src.argument_list_visitor; |
6 | 6 |
7 import 'package:analyzer/analyzer.dart'; | 7 import 'package:analyzer/analyzer.dart'; |
8 | 8 |
9 import 'chunk.dart'; | 9 import 'chunk.dart'; |
10 import 'rule/argument.dart'; | 10 import 'rule/argument.dart'; |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 static bool _isCollectionArgument(Expression expression) { | 410 static bool _isCollectionArgument(Expression expression) { |
411 if (expression is NamedExpression) { | 411 if (expression is NamedExpression) { |
412 expression = (expression as NamedExpression).expression; | 412 expression = (expression as NamedExpression).expression; |
413 } | 413 } |
414 | 414 |
415 // TODO(rnystrom): Should we step into parenthesized expressions? | 415 // TODO(rnystrom): Should we step into parenthesized expressions? |
416 | 416 |
417 return expression is ListLiteral || expression is MapLiteral; | 417 return expression is ListLiteral || expression is MapLiteral; |
418 } | 418 } |
419 } | 419 } |
OLD | NEW |