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

Unified Diff: compiler/java/com/google/dart/compiler/backend/doc/DartDocumentationVisitor.java

Issue 9270016: Issue 932. Checks for various named arguments cases. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweaks for comments, changes in tests. Created 8 years, 11 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
Index: compiler/java/com/google/dart/compiler/backend/doc/DartDocumentationVisitor.java
diff --git a/compiler/java/com/google/dart/compiler/backend/doc/DartDocumentationVisitor.java b/compiler/java/com/google/dart/compiler/backend/doc/DartDocumentationVisitor.java
index b80af3ff2239fbb5ae03f7b9bc067820ea6b66de..280391c15cd32aca563e3b9b3c16b0fbff7bc6b7 100644
--- a/compiler/java/com/google/dart/compiler/backend/doc/DartDocumentationVisitor.java
+++ b/compiler/java/com/google/dart/compiler/backend/doc/DartDocumentationVisitor.java
@@ -215,7 +215,7 @@ class DartDocumentationVisitor extends DartNodeTraverser<Void> {
}
private void printClassTypeParameters(ClassElement classElement) {
- List<? extends Type> typeParameters = classElement.getTypeParameters();
+ List<Type> typeParameters = classElement.getTypeParameters();
if (typeParameters.size() > 0) {
stream.print("&lt;");
boolean first = true;
@@ -330,7 +330,7 @@ class DartDocumentationVisitor extends DartNodeTraverser<Void> {
// For classes search type parameters, superclass and interfaces.
if (enclosing.getKind() == ElementKind.CLASS) {
ClassElement classElement = (ClassElement) enclosing;
- List<? extends Type> typeParameters = classElement.getTypeParameters();
+ List<Type> typeParameters = classElement.getTypeParameters();
for (Type type : typeParameters) {
if (type.getElement().getName().equals(name)) {
String className = classElement.getName();
@@ -429,7 +429,7 @@ class DartDocumentationVisitor extends DartNodeTraverser<Void> {
}
private void printFunctionTypeParameterList(FunctionType type, Element element) {
- List<? extends Type> paramTypes = type.getParameterTypes();
+ List<Type> paramTypes = type.getParameterTypes();
stream.print("(");
boolean first = true;
for (Type paramType : paramTypes) {

Powered by Google App Engine
This is Rietveld 408576698