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

Issue 141703024: Refactor of PolymerExpressions. Adds "as" expressions. (Closed)

Created:
6 years, 10 months ago by justinfagnani
Modified:
6 years, 6 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add support for "as" expressions. Refactor "in" expression support. BUG= R=jmesserly@google.com Committed: https://code.google.com/p/dart/source/detail?r=36887

Patch Set 1 #

Patch Set 2 : Further along: More tests, better use of prepareInstanceModel #

Patch Set 3 : Reviewable state. More reasable tests. #

Patch Set 4 : Reviewable state. More readable tests. #

Total comments: 25

Patch Set 5 : Merged TemplateBinding updates, more tests. #

Patch Set 6 : Address review comments #

Total comments: 24

Patch Set 7 : Not for review #

Patch Set 8 : Roll to latest version, simplified much of the scope creation #

Total comments: 14

Patch Set 9 : syntax, bindings, and globals tests now passing in Safari #

Unified diffs Side-by-side diffs Delta from patch set Stats (+913 lines, -223 lines) Patch
M pkg/pkg.status View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -5 lines 0 comments Download
M pkg/polymer_expressions/lib/eval.dart View 1 2 3 4 5 6 7 8 7 chunks +13 lines, -43 lines 0 comments Download
M pkg/polymer_expressions/lib/expression.dart View 1 2 3 4 5 6 7 5 chunks +34 lines, -2 lines 0 comments Download
M pkg/polymer_expressions/lib/parser.dart View 1 2 3 4 5 6 4 chunks +22 lines, -5 lines 0 comments Download
M pkg/polymer_expressions/lib/polymer_expressions.dart View 1 2 3 4 5 6 7 8 6 chunks +206 lines, -34 lines 0 comments Download
M pkg/polymer_expressions/lib/tokenizer.dart View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/polymer_expressions/lib/visitor.dart View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M pkg/polymer_expressions/test/bindings_test.dart View 1 2 3 4 5 6 7 8 8 chunks +41 lines, -15 lines 0 comments Download
M pkg/polymer_expressions/test/eval_test.dart View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -43 lines 0 comments Download
M pkg/polymer_expressions/test/globals_test.dart View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M pkg/polymer_expressions/test/parser_test.dart View 1 2 3 4 5 6 3 chunks +13 lines, -7 lines 0 comments Download
M pkg/polymer_expressions/test/syntax_test.dart View 1 2 3 4 5 6 7 8 1 chunk +563 lines, -66 lines 0 comments Download
M pkg/polymer_expressions/test/tokenizer_test.dart View 1 2 3 4 1 chunk +9 lines, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
justinfagnani
6 years, 10 months ago (2014-01-29 03:09:59 UTC) #1
justinfagnani
On 2014/01/29 03:09:59, justinfagnani wrote: Still some wiring and tests to do, but this shows ...
6 years, 10 months ago (2014-01-29 03:10:52 UTC) #2
justinfagnani
On 2014/01/29 03:10:52, justinfagnani wrote: > On 2014/01/29 03:09:59, justinfagnani wrote: > > Still some ...
6 years, 10 months ago (2014-01-30 04:57:01 UTC) #3
justinfagnani
Adds "as" expressions. Fixes issues with nested templates. This should have performance improvements, but I ...
6 years, 10 months ago (2014-01-30 23:36:06 UTC) #4
Jennifer Messerly
this is really cool! https://codereview.chromium.org/141703024/diff/60001/pkg/polymer_expressions/lib/eval.dart File pkg/polymer_expressions/lib/eval.dart (right): https://codereview.chromium.org/141703024/diff/60001/pkg/polymer_expressions/lib/eval.dart#newcode372 pkg/polymer_expressions/lib/eval.dart:372: throw "can't eval an in ...
6 years, 10 months ago (2014-01-31 02:48:50 UTC) #5
justinfagnani
https://codereview.chromium.org/141703024/diff/60001/pkg/polymer_expressions/lib/polymer_expressions.dart File pkg/polymer_expressions/lib/polymer_expressions.dart (right): https://codereview.chromium.org/141703024/diff/60001/pkg/polymer_expressions/lib/polymer_expressions.dart#newcode65 pkg/polymer_expressions/lib/polymer_expressions.dart:65: // <template bind> expressions don't pass through prepareInstanceModel On ...
6 years, 10 months ago (2014-01-31 21:02:07 UTC) #6
Jennifer Messerly
hey Justin, should I take another look?
6 years, 10 months ago (2014-02-19 22:52:05 UTC) #7
justinfagnani
PTAL. Thanks! https://codereview.chromium.org/141703024/diff/60001/pkg/polymer_expressions/lib/eval.dart File pkg/polymer_expressions/lib/eval.dart (right): https://codereview.chromium.org/141703024/diff/60001/pkg/polymer_expressions/lib/eval.dart#newcode372 pkg/polymer_expressions/lib/eval.dart:372: throw "can't eval an in expression"; On ...
6 years, 9 months ago (2014-03-12 23:21:30 UTC) #8
Jennifer Messerly
This is looking really nice. Just a few comments at this point :) https://codereview.chromium.org/141703024/diff/120001/pkg/polymer_expressions/lib/eval.dart File ...
6 years, 9 months ago (2014-03-17 23:10:08 UTC) #9
Siggi Cherem (dart-lang)
drive by comment https://codereview.chromium.org/141703024/diff/120001/pkg/polymer_expressions/test/syntax_test.dart File pkg/polymer_expressions/test/syntax_test.dart (right): https://codereview.chromium.org/141703024/diff/120001/pkg/polymer_expressions/test/syntax_test.dart#newcode68 pkg/polymer_expressions/test/syntax_test.dart:68: <div>{{ _scope_id }}</div> FYI - just ...
6 years, 9 months ago (2014-03-19 18:37:27 UTC) #10
justinfagnani
6 years, 9 months ago (2014-03-19 21:21:29 UTC) #11
justinfagnani
Okay, one more time. This CL is a lot cleaner now, IMO, and I have ...
6 years, 8 months ago (2014-04-24 00:26:12 UTC) #12
Jennifer Messerly
lgtm, with some style suggestions https://codereview.chromium.org/141703024/diff/160001/pkg/polymer_expressions/lib/eval.dart File pkg/polymer_expressions/lib/eval.dart (right): https://codereview.chromium.org/141703024/diff/160001/pkg/polymer_expressions/lib/eval.dart#newcode250 pkg/polymer_expressions/lib/eval.dart:250: String toString() => 'LocalVariableScope(varName: ...
6 years, 8 months ago (2014-04-24 00:51:34 UTC) #13
justinfagnani
I tried to reproduce the Safari/FF failures in JS polymer, and couldn't. I'll wait for ...
6 years, 7 months ago (2014-05-28 00:29:36 UTC) #14
justinfagnani
Double checked that TodoMVC works. Since there's an lgtm and I just worked on tests ...
6 years, 6 months ago (2014-06-01 00:05:25 UTC) #15
justinfagnani
6 years, 6 months ago (2014-06-02 18:13:56 UTC) #16
Message was sent while issue was closed.
Committed patchset #9 manually as r36887 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698