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

Side by Side Diff: client/web/typedef.dart

Issue 149573008: Factor out the anchor prefix to easily allow switching to #! (Closed) Base URL: https://github.com/dart-lang/dartdoc-viewer.git@master
Patch Set: Fixes from review Created 6 years, 10 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 | « client/web/type.dart ('k') | client/web/typedef.html » ('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) 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 }
OLDNEW
« no previous file with comments | « client/web/type.dart ('k') | client/web/typedef.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698