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

Issue 11369074: Handle (missing) trailing slash in dartdoc (Closed)

Created:
8 years, 1 month ago by Johnni Winther
Modified:
8 years, 1 month ago
Reviewers:
ahe
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Handle (missing) trailing slash in dartdoc BUG=2311 Committed: https://code.google.com/p/dart/source/detail?r=14536

Patch Set 1 #

Total comments: 12

Patch Set 2 : Updated cf. comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -12 lines) Patch
M sdk/lib/_internal/compiler/compiler.dart View 1 1 chunk +6 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/apiimpl.dart View 1 1 chunk +9 lines, -1 line 0 comments Download
M sdk/lib/_internal/dartdoc/lib/dartdoc.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/dartdoc/lib/src/mirrors/dart2js_mirror.dart View 2 chunks +10 lines, -4 lines 0 comments Download
M tools/create_sdk.py View 1 chunk +0 lines, -4 lines 0 comments Download
M utils/apidoc/apidoc.dart View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Johnni Winther
https://codereview.chromium.org/11369074/diff/1/utils/apidoc/apidoc.dart File utils/apidoc/apidoc.dart (left): https://codereview.chromium.org/11369074/diff/1/utils/apidoc/apidoc.dart#oldcode556 utils/apidoc/apidoc.dart:556: if (member is MethodMirror && (member.isConstructor || member.isFactory)) { ...
8 years, 1 month ago (2012-11-05 13:42:50 UTC) #1
ahe
LGTM https://codereview.chromium.org/11369074/diff/1/sdk/lib/_internal/compiler/compiler.dart File sdk/lib/_internal/compiler/compiler.dart (right): https://codereview.chromium.org/11369074/diff/1/sdk/lib/_internal/compiler/compiler.dart#newcode47 sdk/lib/_internal/compiler/compiler.dart:47: throw new ArgumentError("Library URI must end with a ...
8 years, 1 month ago (2012-11-05 15:58:42 UTC) #2
Johnni Winther
https://codereview.chromium.org/11369074/diff/1/sdk/lib/_internal/compiler/compiler.dart File sdk/lib/_internal/compiler/compiler.dart (right): https://codereview.chromium.org/11369074/diff/1/sdk/lib/_internal/compiler/compiler.dart#newcode47 sdk/lib/_internal/compiler/compiler.dart:47: throw new ArgumentError("Library URI must end with a /"); ...
8 years, 1 month ago (2012-11-05 16:23:29 UTC) #3
ahe
8 years, 1 month ago (2012-11-05 16:46:08 UTC) #4
Nitpicking

https://codereview.chromium.org/11369074/diff/1/utils/apidoc/apidoc.dart
File utils/apidoc/apidoc.dart (left):

https://codereview.chromium.org/11369074/diff/1/utils/apidoc/apidoc.dart#oldc...
utils/apidoc/apidoc.dart:556: if (member is MethodMirror &&
(member.isConstructor || member.isFactory)) {
On 2012/11/05 16:23:29, Johnni Winther wrote:
> On 2012/11/05 15:58:42, ahe wrote:
> > On 2012/11/05 13:42:50, Johnni Winther wrote:
> > > Dead code (and a resolution error - it's now called isFactoryConstructor)
> > 
> > What is dead code, and what is a resolution error? Did you mean warning?
> 
> The isFactory method has been renamed to isFactoryConstructor in a previous
CL,
> and yes, we're not in Java so that is just a dynamic NoSuchMethodError. 
> 
> In any case, a factory is also a constructor, so the code is dead.

Terminology by example:

if (false) {
  print('This is dead code');
}

if (x < 2 || x < 1) {
  print("This is not dead code, it's just a redundant test");
}

So this expression "member is MethodMirror && (member.isConstructor ||
member.isFactory)" does not contain dead code, and it throws a dynamic error if
[member] is a MethodMirror that isn't a constructor.

Powered by Google App Engine
This is Rietveld 408576698