OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 services.src.completion.statement; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 import 'dart:math'; | 6 import 'dart:math'; |
9 | 7 |
10 import 'package:analysis_server/src/protocol_server.dart' hide Element; | 8 import 'package:analysis_server/src/protocol_server.dart' hide Element; |
11 import 'package:analysis_server/src/services/correction/source_buffer.dart'; | 9 import 'package:analysis_server/src/services/correction/source_buffer.dart'; |
12 import 'package:analysis_server/src/services/correction/util.dart'; | 10 import 'package:analysis_server/src/services/correction/util.dart'; |
13 import 'package:analyzer/dart/ast/ast.dart'; | 11 import 'package:analyzer/dart/ast/ast.dart'; |
14 import 'package:analyzer/dart/ast/token.dart'; | 12 import 'package:analyzer/dart/ast/token.dart'; |
15 import 'package:analyzer/dart/element/element.dart'; | 13 import 'package:analyzer/dart/element/element.dart'; |
16 import 'package:analyzer/error/error.dart'; | 14 import 'package:analyzer/error/error.dart'; |
(...skipping 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1235 final Token keyword; | 1233 final Token keyword; |
1236 final Token leftParenthesis, rightParenthesis; | 1234 final Token leftParenthesis, rightParenthesis; |
1237 final Expression condition; | 1235 final Expression condition; |
1238 final Statement block; | 1236 final Statement block; |
1239 | 1237 |
1240 _KeywordConditionBlockStructure(this.keyword, this.leftParenthesis, | 1238 _KeywordConditionBlockStructure(this.keyword, this.leftParenthesis, |
1241 this.condition, this.rightParenthesis, this.block); | 1239 this.condition, this.rightParenthesis, this.block); |
1242 | 1240 |
1243 int get offset => keyword.offset; | 1241 int get offset => keyword.offset; |
1244 } | 1242 } |
OLD | NEW |