| 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 analysis_server.src.status.get_handler; | 5 library analysis_server.src.status.get_handler; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 import 'dart:io'; | 9 import 'dart:io'; |
| 10 import 'dart:math'; | 10 import 'dart:math'; |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 results.add(LIBRARY_ELEMENT1); | 524 results.add(LIBRARY_ELEMENT1); |
| 525 results.add(LIBRARY_ELEMENT2); | 525 results.add(LIBRARY_ELEMENT2); |
| 526 results.add(LIBRARY_ELEMENT3); | 526 results.add(LIBRARY_ELEMENT3); |
| 527 results.add(LIBRARY_ELEMENT4); | 527 results.add(LIBRARY_ELEMENT4); |
| 528 results.add(LIBRARY_ELEMENT5); | 528 results.add(LIBRARY_ELEMENT5); |
| 529 results.add(LIBRARY_ELEMENT6); | 529 results.add(LIBRARY_ELEMENT6); |
| 530 results.add(LIBRARY_ELEMENT); | 530 results.add(LIBRARY_ELEMENT); |
| 531 results.add(LIBRARY_ERRORS_READY); | 531 results.add(LIBRARY_ERRORS_READY); |
| 532 results.add(PARSE_ERRORS); | 532 results.add(PARSE_ERRORS); |
| 533 results.add(PARSED_UNIT); | 533 results.add(PARSED_UNIT); |
| 534 results.add(REFERENCED_NAMES); | |
| 535 results.add(SCAN_ERRORS); | 534 results.add(SCAN_ERRORS); |
| 536 results.add(SOURCE_KIND); | 535 results.add(SOURCE_KIND); |
| 537 results.add(TOKEN_STREAM); | 536 results.add(TOKEN_STREAM); |
| 538 results.add(UNITS); | 537 results.add(UNITS); |
| 539 } else if (AnalysisEngine.isHtmlFileName(name)) { | 538 } else if (AnalysisEngine.isHtmlFileName(name)) { |
| 540 results.add(DART_SCRIPTS); | 539 results.add(DART_SCRIPTS); |
| 541 results.add(HTML_DOCUMENT); | 540 results.add(HTML_DOCUMENT); |
| 542 results.add(HTML_DOCUMENT_ERRORS); | 541 results.add(HTML_DOCUMENT_ERRORS); |
| 543 results.add(HTML_ERRORS); | 542 results.add(HTML_ERRORS); |
| 544 results.add(REFERENCED_LIBRARIES); | 543 results.add(REFERENCED_LIBRARIES); |
| (...skipping 2203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2748 */ | 2747 */ |
| 2749 static String makeLink( | 2748 static String makeLink( |
| 2750 String path, Map<String, String> params, String innerHtml, | 2749 String path, Map<String, String> params, String innerHtml, |
| 2751 [bool hasError = false]) { | 2750 [bool hasError = false]) { |
| 2752 Uri uri = new Uri(path: path, queryParameters: params); | 2751 Uri uri = new Uri(path: path, queryParameters: params); |
| 2753 String href = HTML_ESCAPE.convert(uri.toString()); | 2752 String href = HTML_ESCAPE.convert(uri.toString()); |
| 2754 String classAttribute = hasError ? ' class="error"' : ''; | 2753 String classAttribute = hasError ? ' class="error"' : ''; |
| 2755 return '<a href="$href"$classAttribute>$innerHtml</a>'; | 2754 return '<a href="$href"$classAttribute>$innerHtml</a>'; |
| 2756 } | 2755 } |
| 2757 } | 2756 } |
| OLD | NEW |