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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/FunctionDeclaration.java

Issue 11364134: Merge libv1. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload due to error Created 8 years, 1 month 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: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/FunctionDeclaration.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/FunctionDeclaration.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/FunctionDeclaration.java
index fac02f8bf079fa084e258850ac2adfbb02d3582c..37ca091b3af1e9920f236d31e2ff29c29125ef17 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/FunctionDeclaration.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/FunctionDeclaration.java
@@ -146,6 +146,10 @@ public class FunctionDeclaration extends CompilationUnitMember {
protected Token getFirstTokenAfterCommentAndMetadata() {
if (externalKeyword != null) {
return externalKeyword;
+ }
+ TypeName returnType = functionExpression.getReturnType();
+ if (returnType != null) {
+ return returnType.getBeginToken();
} else if (propertyKeyword != null) {
return propertyKeyword;
}

Powered by Google App Engine
This is Rietveld 408576698