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

Issue 8817009: Preliminary support for dartdoc hovers. Future CLs will give us richer hover information and styl... (Closed)

Created:
9 years ago by devoncarew
Modified:
9 years ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Preliminary support for dartdoc hovers. Future CLs will give us richer hover information and styling. Committed: https://code.google.com/p/dart/source/detail?r=2134

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 10

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -72 lines) Patch
M editor/tools/plugins/com.google.dart.tools.core/META-INF/MANIFEST.MF View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/DartFunctionImpl.java View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/DartTypeMemberImpl.java View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/DartVariableImpl.java View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/model/DartDocumentable.java View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/model/DartFunction.java View 1 2 3 4 1 chunk +2 lines, -23 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/model/DartVariableDeclaration.java View 1 2 3 4 1 chunk +2 lines, -23 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/model/TypeMember.java View 1 2 3 4 1 chunk +1 line, -22 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/dartdoc/DartDocUtilities.java View 1 2 3 4 1 chunk +112 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartTextHover.java View 1 2 3 4 1 chunk +61 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/text/DartSourceViewerConfiguration.java View 1 2 3 4 3 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
devoncarew
From talking w/ Steve, this or future CLs would benefit from using DartCompilerUtilities - a ...
9 years ago (2011-12-06 06:50:05 UTC) #1
messick
lgtm http://codereview.chromium.org/8817009/diff/1020/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/text/DartSourceViewerConfiguration.java File editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/text/DartSourceViewerConfiguration.java (right): http://codereview.chromium.org/8817009/diff/1020/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/text/DartSourceViewerConfiguration.java#newcode708 editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/text/DartSourceViewerConfiguration.java:708: public boolean isShownInText(Annotation annotation) { What's the purpose ...
9 years ago (2011-12-06 15:11:04 UTC) #2
Brian Wilkerson
LGTM, but I think you forgot to add the interface DartDocumentable. http://codereview.chromium.org/8817009/diff/1020/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/dartdoc/DartDocUtils.java File editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/dartdoc/DartDocUtils.java (right): ...
9 years ago (2011-12-06 15:15:39 UTC) #3
devoncarew
http://codereview.chromium.org/8817009/diff/1020/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/dartdoc/DartDocUtils.java File editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/dartdoc/DartDocUtils.java (right): http://codereview.chromium.org/8817009/diff/1020/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/dartdoc/DartDocUtils.java#newcode1 editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/dartdoc/DartDocUtils.java:1: package com.google.dart.tools.ui.internal.text.dartdoc; On 2011/12/06 15:15:39, Brian Wilkerson wrote: > ...
9 years ago (2011-12-06 17:55:09 UTC) #4
messick
9 years ago (2011-12-06 18:08:03 UTC) #5
On 2011/12/06 17:55:09, devoncarew wrote:
>
http://codereview.chromium.org/8817009/diff/1020/editor/tools/plugins/com.goo...
> File
>
editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/dartdoc/DartDocUtils.java
> (right):
> 
>
http://codereview.chromium.org/8817009/diff/1020/editor/tools/plugins/com.goo...
>
editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/dartdoc/DartDocUtils.java:1:
> package com.google.dart.tools.ui.internal.text.dartdoc;
> On 2011/12/06 15:15:39, Brian Wilkerson wrote:
> > There is nothing UI specific in this class. Please move it into the model
> > (unless you expect to have UI specific code in here in the future).
> 
> Done.
> 
>
http://codereview.chromium.org/8817009/diff/1020/editor/tools/plugins/com.goo...
>
editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/dartdoc/DartDocUtils.java:10:
> public class DartDocUtils {
> On 2011/12/06 15:15:39, Brian Wilkerson wrote:
> > nit: I like to make utility classes "final" to make the intent clear.
> 
> Done.
> 
>
http://codereview.chromium.org/8817009/diff/1020/editor/tools/plugins/com.goo...
> File
>
editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartTextHover.java
> (right):
> 
>
http://codereview.chromium.org/8817009/diff/1020/editor/tools/plugins/com.goo...
>
editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartTextHover.java:50:
> DartUnit unit = editor.getAST();
> On 2011/12/06 15:15:39, Brian Wilkerson wrote:
> > Everything in this try statement below the access of the AST could be move
> into
> > DartDocUtils so that it can be accessed from other places.
> 
> Done.
> 
>
http://codereview.chromium.org/8817009/diff/1020/editor/tools/plugins/com.goo...
>
editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartTextHover.java:58:
> if (element != null && element instanceof DartDocumentable) {
> On 2011/12/06 15:15:39, Brian Wilkerson wrote:
> > nit: You don't need to test for null if you're doing an instanceof test.
> 
> Done.
> 
>
http://codereview.chromium.org/8817009/diff/1020/editor/tools/plugins/com.goo...
> File
>
editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/text/DartSourceViewerConfiguration.java
> (right):
> 
>
http://codereview.chromium.org/8817009/diff/1020/editor/tools/plugins/com.goo...
>
editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/text/DartSourceViewerConfiguration.java:708:
> public boolean isShownInText(Annotation annotation) {
> On 2011/12/06 15:11:04, messick wrote:
> > What's the purpose of this method?
> 
> There are several types of annotations - like DiffChanges - that are not meant
> to be shown to the user. If you look at the parent's implementation you can
see
> how that visibility decision is made.

The new comment helps. Thanks!

Powered by Google App Engine
This is Rietveld 408576698