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

Unified Diff: pkg/dartdoc/mirrors/dart2js_mirror.dart

Issue 10854191: Require two type arguments for map literals (issue 4522). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/dartdoc/markdown.dart ('k') | pkg/logging/logging.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartdoc/mirrors/dart2js_mirror.dart
===================================================================
--- pkg/dartdoc/mirrors/dart2js_mirror.dart (revision 10860)
+++ pkg/dartdoc/mirrors/dart2js_mirror.dart (working copy)
@@ -317,7 +317,7 @@
Dart2JsCompilation(Path script, Path libraryRoot,
[Path packageRoot, List<String> opts = const <String>[]])
- : cwd = getCurrentDirectory(), sourceFiles = <SourceFile>{} {
+ : cwd = getCurrentDirectory(), sourceFiles = <String, SourceFile>{} {
var libraryUri = cwd.resolve(libraryRoot.toString());
var packageUri;
if (packageRoot !== null) {
@@ -334,7 +334,7 @@
Dart2JsCompilation.library(List<Path> libraries, Path libraryRoot,
[Path packageRoot, List<String> opts = const <String>[]])
- : cwd = getCurrentDirectory(), sourceFiles = <SourceFile>{} {
+ : cwd = getCurrentDirectory(), sourceFiles = <String, SourceFile>{} {
var libraryUri = cwd.resolve(libraryRoot.toString());
var packageUri;
if (packageRoot !== null) {
@@ -426,7 +426,7 @@
void _ensureLibraries() {
if (_libraries == null) {
- _libraries = <Dart2JsLibraryMirror>{};
+ _libraries = <String, Dart2JsLibraryMirror>{};
compiler.libraries.forEach((_, LibraryElement v) {
var mirror = new Dart2JsLibraryMirror(system, v);
_libraries[mirror.canonicalName] = mirror;
@@ -494,7 +494,7 @@
void _ensureTypes() {
if (_types == null) {
- _types = <InterfaceMirror>{};
+ _types = <String, InterfaceMirror>{};
_library.forEachExport((Element e) {
if (e.getLibrary() == _library) {
if (e.isClass()) {
@@ -512,7 +512,7 @@
void _ensureMembers() {
if (_members == null) {
- _members = <MemberMirror>{};
+ _members = <String, MemberMirror>{};
_library.forEachExport((Element e) {
if (!e.isClass() && !e.isTypedef()) {
for (var member in _convertElementMemberToMemberMirrors(this, e)) {
@@ -682,7 +682,7 @@
void _ensureMembers() {
if (_members == null) {
- _members = <Dart2JsMemberMirror>{};
+ _members = <String, Dart2JsMemberMirror>{};
_class.localMembers.forEach((e) {
for (var member in _convertElementMemberToMemberMirrors(this, e)) {
_members[member.canonicalName] = member;
@@ -854,14 +854,16 @@
return _definition;
}
- Map<Object, MemberMirror> get declaredMembers() => const <MemberMirror>{};
+ Map<Object, MemberMirror> get declaredMembers() =>
+ const <String, MemberMirror>{};
InterfaceMirror get declaration() => this;
// TODO(johnniwinther): How should a typedef respond to these?
InterfaceMirror get superclass() => null;
- Map<Object, InterfaceMirror> get interfaces() => const <InterfaceMirror>{};
+ Map<Object, InterfaceMirror> get interfaces() =>
+ const <String, InterfaceMirror>{};
bool get isClass() => false;
@@ -871,7 +873,8 @@
bool get isDeclaration() => true;
- Map<Object, MethodMirror> get constructors() => const <MethodMirror>{};
+ Map<Object, MethodMirror> get constructors() =>
+ const <String, MethodMirror>{};
InterfaceMirror get defaultType() => null;
}
@@ -1123,7 +1126,8 @@
List<TypeVariableMirror> get typeVariables() => declaration.typeVariables;
- Map<Object, MethodMirror> get constructors() => <MethodMirror>{};
+ Map<Object, MethodMirror> get constructors() =>
+ <String, MethodMirror>{};
InterfaceMirror get defaultType() => null;
« no previous file with comments | « pkg/dartdoc/markdown.dart ('k') | pkg/logging/logging.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698