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

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

Issue 1158193008: Eliminate Modifier.TYPEDEF and deprecate ClassElement.isTypedef. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/element.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/get_handler.dart';
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 properties['nameOffset'] = element.nameOffset; 47 properties['nameOffset'] = element.nameOffset;
48 if (element is ClassElement) { 48 if (element is ClassElement) {
49 properties['hasNonFinalField'] = element.hasNonFinalField; 49 properties['hasNonFinalField'] = element.hasNonFinalField;
50 properties['hasReferenceToSuper'] = element.hasReferenceToSuper; 50 properties['hasReferenceToSuper'] = element.hasReferenceToSuper;
51 properties['hasStaticMember'] = element.hasStaticMember; 51 properties['hasStaticMember'] = element.hasStaticMember;
52 properties['interfaces'] = element.interfaces; 52 properties['interfaces'] = element.interfaces;
53 properties['isAbstract'] = element.isAbstract; 53 properties['isAbstract'] = element.isAbstract;
54 properties['isEnum'] = element.isEnum; 54 properties['isEnum'] = element.isEnum;
55 properties['isOrInheritsProxy'] = element.isOrInheritsProxy; 55 properties['isOrInheritsProxy'] = element.isOrInheritsProxy;
56 properties['isProxy'] = element.isProxy; 56 properties['isProxy'] = element.isProxy;
57 properties['isTypedef'] = element.isTypedef; 57 properties['isTypedef'] = element.isMixinApplication;
58 properties['isValidMixin'] = element.isValidMixin; 58 properties['isValidMixin'] = element.isValidMixin;
59 properties['mixins'] = element.mixins; 59 properties['mixins'] = element.mixins;
60 properties['supertype'] = element.supertype; 60 properties['supertype'] = element.supertype;
61 properties['type'] = element.type; 61 properties['type'] = element.type;
62 } 62 }
63 if (element is CompilationUnitElement) { 63 if (element is CompilationUnitElement) {
64 properties['isEnumConstant'] = element.hasLoadLibraryFunction; 64 properties['isEnumConstant'] = element.hasLoadLibraryFunction;
65 properties['source'] = element.source; 65 properties['source'] = element.source;
66 } 66 }
67 if (element is ConstFieldElementImpl) { 67 if (element is ConstFieldElementImpl) {
(...skipping 100 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 | « no previous file | pkg/analyzer/lib/src/generated/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698