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.call_chain_visitor; | 5 library dart_style.src.call_chain_visitor; |
6 | 6 |
7 import 'package:analyzer/analyzer.dart'; | 7 import 'package:analyzer/analyzer.dart'; |
8 | 8 |
9 import 'argument_list_visitor.dart'; | 9 import 'argument_list_visitor.dart'; |
10 import 'rule/argument.dart'; | 10 import 'rule/argument.dart'; |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 } | 238 } |
239 | 239 |
240 /// Ends the span wrapping the call chain if it hasn't ended already. | 240 /// Ends the span wrapping the call chain if it hasn't ended already. |
241 void _endSpan() { | 241 void _endSpan() { |
242 if (_spanEnded) return; | 242 if (_spanEnded) return; |
243 | 243 |
244 _visitor.builder.endSpan(); | 244 _visitor.builder.endSpan(); |
245 _spanEnded = true; | 245 _spanEnded = true; |
246 } | 246 } |
247 } | 247 } |
OLD | NEW |