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

Issue 641923003: Remove the need for functionSignature. (Closed)

Created:
6 years, 2 months ago by Johnni Winther
Modified:
6 years, 2 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Remove the need for functionSignature. BUG= R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=41067

Patch Set 1 #

Total comments: 4

Patch Set 2 : Updated cf. comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -76 lines) Patch
M pkg/analyzer2dart/lib/src/modely.dart View 4 chunks +9 lines, -40 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_emitter.dart View 1 1 chunk +69 lines, -31 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_to_frontend_ast.dart View 2 chunks +6 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart_backend/tree_ir_builder.dart View 2 chunks +3 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart_backend/tree_ir_nodes.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/elements/elements.dart View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Johnni Winther
6 years, 2 months ago (2014-10-10 09:05:34 UTC) #2
floitsch
LGTM. https://codereview.chromium.org/641923003/diff/1/sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_emitter.dart File sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_emitter.dart (right): https://codereview.chromium.org/641923003/diff/1/sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_emitter.dart#newcode212 sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_emitter.dart:212: name: name.moveNext() ? name.current : null, Minor nit. ...
6 years, 2 months ago (2014-10-10 12:56:04 UTC) #3
Johnni Winther
Committed patchset #2 (id:110001) manually as 41067 (presubmit successful).
6 years, 2 months ago (2014-10-13 08:05:56 UTC) #4
Johnni Winther
6 years, 2 months ago (2014-10-13 08:10:55 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/641923003/diff/1/sdk/lib/_internal/compiler/i...
File
sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_emitter.dart
(right):

https://codereview.chromium.org/641923003/diff/1/sdk/lib/_internal/compiler/i...
sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_emitter.dart:212:
name: name.moveNext() ? name.current : null,
On 2014/10/10 12:56:04, floitsch wrote:
> Minor nit. (not much better. just wanted to point it out).
> could be simplified to:
> name.moveNext();
> defaultValue.moveNext();
> element.moveNext();
> return emitParameter(type, name.current, defaultValue.current,
element.current);
> 
> The contract is that 'current' returns null when moveNext returned false.

Done. I thought [current] would throw!

https://codereview.chromium.org/641923003/diff/1/sdk/lib/_internal/compiler/i...
sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_emitter.dart:221:
ParameterElement elementFromParameter(tree.Variable parameter) {
On 2014/10/10 12:56:04, floitsch wrote:
> I prefer to inline it.
> If it doesn't fit, I'm ok with taking a shorter name:
> ((p) => p.element)
> 
> Unless you want the type check.
> 
> And I would like to suggest an improvement to the spec:
> (x) => x.foo should have as shortcut: *.foo
> --
> parameters.map(*.element)

Done.

Powered by Google App Engine
This is Rietveld 408576698