| 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 protocol.server; | 5 library protocol.server; |
| 6 | 6 |
| 7 import 'package:analysis_server/plugin/protocol/protocol.dart'; | 7 import 'package:analysis_server/plugin/protocol/protocol.dart'; |
| 8 import 'package:analysis_server/plugin/protocol/protocol_dart.dart'; | 8 import 'package:analysis_server/plugin/protocol/protocol_dart.dart'; |
| 9 import 'package:analysis_server/src/services/correction/fix.dart'; | 9 import 'package:analysis_server/src/services/correction/fix.dart'; |
| 10 import 'package:analysis_server/src/services/search/search_engine.dart' | 10 import 'package:analysis_server/src/services/search/search_engine.dart' |
| 11 as engine; | 11 as engine; |
| 12 import 'package:analyzer/dart/ast/ast.dart' as engine; |
| 13 import 'package:analyzer/dart/ast/visitor.dart' as engine; |
| 12 import 'package:analyzer/dart/element/element.dart' as engine; | 14 import 'package:analyzer/dart/element/element.dart' as engine; |
| 13 import 'package:analyzer/dart/element/type.dart' as engine; | 15 import 'package:analyzer/dart/element/type.dart' as engine; |
| 14 import 'package:analyzer/source/error_processor.dart'; | 16 import 'package:analyzer/source/error_processor.dart'; |
| 15 import 'package:analyzer/src/generated/ast.dart' as engine; | 17 import 'package:analyzer/src/dart/ast/utilities.dart' as engine; |
| 16 import 'package:analyzer/src/generated/engine.dart' as engine; | 18 import 'package:analyzer/src/generated/engine.dart' as engine; |
| 17 import 'package:analyzer/src/generated/error.dart' as engine; | 19 import 'package:analyzer/src/generated/error.dart' as engine; |
| 18 import 'package:analyzer/src/generated/source.dart' as engine; | 20 import 'package:analyzer/src/generated/source.dart' as engine; |
| 19 import 'package:analyzer/src/generated/utilities_dart.dart' as engine; | 21 import 'package:analyzer/src/generated/utilities_dart.dart' as engine; |
| 20 | 22 |
| 21 export 'package:analysis_server/plugin/protocol/protocol.dart'; | 23 export 'package:analysis_server/plugin/protocol/protocol.dart'; |
| 22 export 'package:analysis_server/plugin/protocol/protocol_dart.dart'; | 24 export 'package:analysis_server/plugin/protocol/protocol_dart.dart'; |
| 23 | 25 |
| 24 /** | 26 /** |
| 25 * Returns a list of AnalysisErrors corresponding to the given list of Engine | 27 * Returns a list of AnalysisErrors corresponding to the given list of Engine |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 if (lineInfo != null) { | 259 if (lineInfo != null) { |
| 258 engine.LineInfo_Location offsetLocation = | 260 engine.LineInfo_Location offsetLocation = |
| 259 lineInfo.getLocation(range.offset); | 261 lineInfo.getLocation(range.offset); |
| 260 startLine = offsetLocation.lineNumber; | 262 startLine = offsetLocation.lineNumber; |
| 261 startColumn = offsetLocation.columnNumber; | 263 startColumn = offsetLocation.columnNumber; |
| 262 } | 264 } |
| 263 } | 265 } |
| 264 return new Location( | 266 return new Location( |
| 265 source.fullName, range.offset, range.length, startLine, startColumn); | 267 source.fullName, range.offset, range.length, startLine, startColumn); |
| 266 } | 268 } |
| OLD | NEW |