| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 web.typedef; | 5 library web.typedef; |
| 6 | 6 |
| 7 import 'package:dartdoc_viewer/item.dart'; | 7 import 'package:dartdoc_viewer/item.dart'; |
| 8 import 'package:dartdoc_viewer/location.dart'; |
| 8 import 'package:polymer/polymer.dart'; | 9 import 'package:polymer/polymer.dart'; |
| 9 import 'member.dart'; | 10 import 'member.dart'; |
| 10 | 11 |
| 11 @CustomTag("dartdoc-typedef") | 12 @CustomTag("dartdoc-typedef") |
| 12 class TypedefElement extends MemberElement { | 13 class TypedefElement extends MemberElement { |
| 13 TypedefElement.created() : super.created(); | 14 TypedefElement.created() : super.created(); |
| 14 | 15 |
| 15 wrongClass(newItem) => newItem is! Typedef; | 16 wrongClass(newItem) => newItem is! Typedef; |
| 16 get defaultItem => _defaultItem; | 17 get defaultItem => _defaultItem; |
| 17 static final _defaultItem = | 18 static final _defaultItem = |
| 18 new Typedef({'name' : 'loading', 'qualifiedName' : 'loading'}); | 19 new Typedef({'name' : 'loading', 'qualifiedName' : 'loading'}); |
| 20 |
| 21 String get prefixedLocation => locationPrefixed(item.type.location); |
| 19 } | 22 } |
| OLD | NEW |