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

Unified Diff: client/lib/components/category.dart

Issue 273473002: Display function signatures instead of just "Function". (Closed) Base URL: https://github.com/dart-lang/dartdoc-viewer.git@master
Patch Set: Created 6 years, 7 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 | « no previous file | client/lib/components/category.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/lib/components/category.dart
diff --git a/client/lib/components/category.dart b/client/lib/components/category.dart
index c60892757a9cf94ebc5536c0da3f2f8a28446c2f..afff1d9c6576a9254d95c1ca29a045c3a97cccfd 100644
--- a/client/lib/components/category.dart
+++ b/client/lib/components/category.dart
@@ -23,6 +23,7 @@ class CategoryElement extends DartdocElement {
// null. We do it this way to keep the <template if> outside of the
// <template repeat>, so the repeat is more strongly typed.
@published ObservableList<Item> items;
+ @published ObservableList<Typedef> typedefs;
@published ObservableList<Variable> variables;
@published ObservableList<Method> methods;
@@ -63,11 +64,13 @@ class CategoryElement extends DartdocElement {
void itemsChanged() => _updateHasItems();
void variablesChanged() => _updateHasItems();
void methodsChanged() => _updateHasItems();
+ void typedefsChanged() => _updateHasItems();
void _updateHasItems() {
hasItems = items != null && items.isNotEmpty ||
variables != null && variables.isNotEmpty ||
- methods != null && methods.isNotEmpty;
+ methods != null && methods.isNotEmpty ||
+ typedefs != null && typedefs.isNotEmpty;
}
void hideShow(event, detail, AnchorElement target) {
« no previous file with comments | « no previous file | client/lib/components/category.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698