Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(688)

Side by Side Diff: pkg/analysis_server/lib/src/status/get_handler.dart

Issue 1385293002: Lint support for the new task model. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Tests and tweaks. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:convert'; 9 import 'dart:convert';
10 import 'dart:io'; 10 import 'dart:io';
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 results.add(DART_SCRIPTS); 316 results.add(DART_SCRIPTS);
317 results.add(HTML_DOCUMENT); 317 results.add(HTML_DOCUMENT);
318 results.add(HTML_DOCUMENT_ERRORS); 318 results.add(HTML_DOCUMENT_ERRORS);
319 results.add(HTML_ERRORS); 319 results.add(HTML_ERRORS);
320 results.add(REFERENCED_LIBRARIES); 320 results.add(REFERENCED_LIBRARIES);
321 } 321 }
322 } else if (target is LibrarySpecificUnit) { 322 } else if (target is LibrarySpecificUnit) {
323 results.add(COMPILATION_UNIT_CONSTANTS); 323 results.add(COMPILATION_UNIT_CONSTANTS);
324 results.add(COMPILATION_UNIT_ELEMENT); 324 results.add(COMPILATION_UNIT_ELEMENT);
325 results.add(HINTS); 325 results.add(HINTS);
326 results.add(LINTS);
326 results.add(INFER_STATIC_VARIABLE_TYPES_ERRORS); 327 results.add(INFER_STATIC_VARIABLE_TYPES_ERRORS);
327 results.add(INFERABLE_STATIC_VARIABLES_IN_UNIT); 328 results.add(INFERABLE_STATIC_VARIABLES_IN_UNIT);
328 results.add(LIBRARY_UNIT_ERRORS); 329 results.add(LIBRARY_UNIT_ERRORS);
329 results.add(PARTIALLY_RESOLVE_REFERENCES_ERRORS); 330 results.add(PARTIALLY_RESOLVE_REFERENCES_ERRORS);
330 results.add(RESOLVE_FUNCTION_BODIES_ERRORS); 331 results.add(RESOLVE_FUNCTION_BODIES_ERRORS);
331 results.add(RESOLVE_TYPE_NAMES_ERRORS); 332 results.add(RESOLVE_TYPE_NAMES_ERRORS);
332 results.add(RESOLVED_UNIT1); 333 results.add(RESOLVED_UNIT1);
333 results.add(RESOLVED_UNIT2); 334 results.add(RESOLVED_UNIT2);
334 results.add(RESOLVED_UNIT3); 335 results.add(RESOLVED_UNIT3);
335 results.add(RESOLVED_UNIT4); 336 results.add(RESOLVED_UNIT4);
(...skipping 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1807 */ 1808 */
1808 static String makeLink( 1809 static String makeLink(
1809 String path, Map<String, String> params, String innerHtml, 1810 String path, Map<String, String> params, String innerHtml,
1810 [bool hasError = false]) { 1811 [bool hasError = false]) {
1811 Uri uri = new Uri(path: path, queryParameters: params); 1812 Uri uri = new Uri(path: path, queryParameters: params);
1812 String href = HTML_ESCAPE.convert(uri.toString()); 1813 String href = HTML_ESCAPE.convert(uri.toString());
1813 String classAttribute = hasError ? ' class="error"' : ''; 1814 String classAttribute = hasError ? ' class="error"' : '';
1814 return '<a href="$href"$classAttribute>$innerHtml</a>'; 1815 return '<a href="$href"$classAttribute>$innerHtml</a>';
1815 } 1816 }
1816 } 1817 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/context/context.dart » ('j') | pkg/analyzer/lib/src/task/dart.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698