| 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 operation.analysis; | 5 library operation.analysis; |
| 6 | 6 |
| 7 import 'package:analysis_server/src/analysis_server.dart'; | 7 import 'package:analysis_server/src/analysis_server.dart'; |
| 8 import 'package:analysis_server/src/computer/computer_highlights.dart'; | 8 import 'package:analysis_server/src/computer/computer_highlights.dart'; |
| 9 import 'package:analysis_server/src/computer/computer_navigation.dart'; | 9 import 'package:analysis_server/src/computer/computer_navigation.dart'; |
| 10 import 'package:analysis_server/src/computer/computer_occurrences.dart'; | 10 import 'package:analysis_server/src/computer/computer_occurrences.dart'; |
| 11 import 'package:analysis_server/src/computer/computer_outline.dart'; | 11 import 'package:analysis_server/src/computer/computer_outline.dart'; |
| 12 import 'package:analysis_server/src/computer/computer_overrides.dart'; | 12 import 'package:analysis_server/src/computer/computer_overrides.dart'; |
| 13 import 'package:analysis_server/src/constants.dart'; | 13 import 'package:analysis_server/src/constants.dart'; |
| 14 import 'package:analysis_server/src/operation/operation.dart'; | 14 import 'package:analysis_server/src/operation/operation.dart'; |
| 15 import 'package:analysis_server/src/protocol.dart'; | 15 import 'package:analysis_server/src/protocol.dart'; |
| 16 import 'package:analyzer/index/index.dart'; |
| 16 import 'package:analyzer/src/generated/ast.dart'; | 17 import 'package:analyzer/src/generated/ast.dart'; |
| 17 import 'package:analyzer/src/generated/engine.dart'; | 18 import 'package:analyzer/src/generated/engine.dart'; |
| 18 import 'package:analyzer/src/generated/error.dart'; | 19 import 'package:analyzer/src/generated/error.dart'; |
| 19 import 'package:analyzer/src/generated/html.dart'; | 20 import 'package:analyzer/src/generated/html.dart'; |
| 20 import 'package:analyzer/src/generated/index.dart'; | |
| 21 import 'package:analyzer/src/generated/java_core.dart'; | 21 import 'package:analyzer/src/generated/java_core.dart'; |
| 22 import 'package:analyzer/src/generated/source.dart'; | 22 import 'package:analyzer/src/generated/source.dart'; |
| 23 | 23 |
| 24 | 24 |
| 25 Map<String, Object> errorToJson(LineInfo lineInfo, AnalysisError analysisError) | 25 Map<String, Object> errorToJson(LineInfo lineInfo, AnalysisError analysisError) |
| 26 { | 26 { |
| 27 ErrorCode errorCode = analysisError.errorCode; | 27 ErrorCode errorCode = analysisError.errorCode; |
| 28 // prepare location | 28 // prepare location |
| 29 int offset = analysisError.offset; | 29 int offset = analysisError.offset; |
| 30 Map<String, Object> location = { | 30 Map<String, Object> location = { |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 // HTML | 207 // HTML |
| 208 { | 208 { |
| 209 HtmlUnit htmlUnit = notice.htmlUnit; | 209 HtmlUnit htmlUnit = notice.htmlUnit; |
| 210 if (htmlUnit != null) { | 210 if (htmlUnit != null) { |
| 211 index.indexHtmlUnit(context, htmlUnit); | 211 index.indexHtmlUnit(context, htmlUnit); |
| 212 } | 212 } |
| 213 } | 213 } |
| 214 } | 214 } |
| 215 } | 215 } |
| 216 } | 216 } |
| OLD | NEW |