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

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

Issue 1490233007: Remove the old task model (Closed) Base URL: https://github.com/dart-lang/sdk.git@analyzer-breaking-0.27
Patch Set: Created 5 years 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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.element_writer; 5 library analysis_server.src.status.element_writer;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:convert'; 8 import 'dart:convert';
9 9
10 import 'package:analysis_server/src/get_handler.dart'; 10 import 'package:analysis_server/src/status/get_handler.dart';
11 import 'package:analysis_server/src/status/tree_writer.dart'; 11 import 'package:analysis_server/src/status/tree_writer.dart';
12 import 'package:analyzer/src/generated/element.dart'; 12 import 'package:analyzer/src/generated/element.dart';
13 13
14 /** 14 /**
15 * A visitor that will produce an HTML representation of an element structure. 15 * A visitor that will produce an HTML representation of an element structure.
16 */ 16 */
17 class ElementWriter extends GeneralizingElementVisitor with TreeWriter { 17 class ElementWriter extends GeneralizingElementVisitor with TreeWriter {
18 /** 18 /**
19 * Initialize a newly created element writer to write the HTML representation 19 * Initialize a newly created element writer to write the HTML representation
20 * of visited elements on the given [buffer]. 20 * of visited elements on the given [buffer].
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 if (name != null) { 168 if (name != null) {
169 buffer.write('  ['); 169 buffer.write('  [');
170 buffer.write(GetHandler.makeLink( 170 buffer.write(GetHandler.makeLink(
171 GetHandler.INDEX_ELEMENT_BY_NAME, {'name': name}, 'search index')); 171 GetHandler.INDEX_ELEMENT_BY_NAME, {'name': name}, 'search index'));
172 buffer.write(']'); 172 buffer.write(']');
173 } 173 }
174 } 174 }
175 buffer.write('<br>'); 175 buffer.write('<br>');
176 } 176 }
177 } 177 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/services/correction/fix_internal.dart ('k') | pkg/analysis_server/lib/src/status/get_handler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698