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

Side by Side Diff: pkg/dartdoc/mirrors/dart2js_mirror.dart

Issue 10919024: - Change "static final" to "static const" in the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « pkg/dartdoc/html_renderer.dart ('k') | pkg/fixnum/int32.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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('mirrors.dart2js'); 5 #library('mirrors.dart2js');
6 6
7 #import('../../../lib/compiler/compiler.dart', prefix: 'diagnostics'); 7 #import('../../../lib/compiler/compiler.dart', prefix: 'diagnostics');
8 #import('../../../lib/compiler/implementation/elements/elements.dart'); 8 #import('../../../lib/compiler/implementation/elements/elements.dart');
9 #import('../../../lib/compiler/implementation/apiimpl.dart', prefix: 'api'); 9 #import('../../../lib/compiler/implementation/apiimpl.dart', prefix: 'api');
10 #import('../../../lib/compiler/implementation/scanner/scannerlib.dart'); 10 #import('../../../lib/compiler/implementation/scanner/scannerlib.dart');
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 MethodMirror _convertElementMethodToMethodMirror(Dart2JsObjectMirror library, 95 MethodMirror _convertElementMethodToMethodMirror(Dart2JsObjectMirror library,
96 Element element) { 96 Element element) {
97 if (element is FunctionElement) { 97 if (element is FunctionElement) {
98 return new Dart2JsMethodMirror(library, element); 98 return new Dart2JsMethodMirror(library, element);
99 } else { 99 } else {
100 return null; 100 return null;
101 } 101 }
102 } 102 }
103 103
104 class Dart2JsMethodKind { 104 class Dart2JsMethodKind {
105 static final Dart2JsMethodKind NORMAL = const Dart2JsMethodKind("normal"); 105 static const Dart2JsMethodKind NORMAL = const Dart2JsMethodKind("normal");
106 static final Dart2JsMethodKind CONSTRUCTOR 106 static const Dart2JsMethodKind CONSTRUCTOR
107 = const Dart2JsMethodKind("constructor"); 107 = const Dart2JsMethodKind("constructor");
108 static final Dart2JsMethodKind CONST = const Dart2JsMethodKind("const"); 108 static const Dart2JsMethodKind CONST = const Dart2JsMethodKind("const");
109 static final Dart2JsMethodKind FACTORY = const Dart2JsMethodKind("factory"); 109 static const Dart2JsMethodKind FACTORY = const Dart2JsMethodKind("factory");
110 static final Dart2JsMethodKind GETTER = const Dart2JsMethodKind("getter"); 110 static const Dart2JsMethodKind GETTER = const Dart2JsMethodKind("getter");
111 static final Dart2JsMethodKind SETTER = const Dart2JsMethodKind("setter"); 111 static const Dart2JsMethodKind SETTER = const Dart2JsMethodKind("setter");
112 static final Dart2JsMethodKind OPERATOR = const Dart2JsMethodKind("operator"); 112 static const Dart2JsMethodKind OPERATOR = const Dart2JsMethodKind("operator");
113 113
114 final String text; 114 final String text;
115 115
116 const Dart2JsMethodKind(this.text); 116 const Dart2JsMethodKind(this.text);
117 117
118 String toString() => text; 118 String toString() => text;
119 } 119 }
120 120
121 121
122 String _getOperatorFromOperatorName(String name) { 122 String _getOperatorFromOperatorName(String name) {
(...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 if (node !== null) { 1381 if (node !== null) {
1382 var span = system.compiler.spanFromNode(node, script.uri); 1382 var span = system.compiler.spanFromNode(node, script.uri);
1383 return new Dart2JsLocation(script, span); 1383 return new Dart2JsLocation(script, span);
1384 } else { 1384 } else {
1385 var span = system.compiler.spanFromElement(_variable); 1385 var span = system.compiler.spanFromElement(_variable);
1386 return new Dart2JsLocation(script, span); 1386 return new Dart2JsLocation(script, span);
1387 } 1387 }
1388 } 1388 }
1389 } 1389 }
1390 1390
OLDNEW
« no previous file with comments | « pkg/dartdoc/html_renderer.dart ('k') | pkg/fixnum/int32.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698