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

Issue 9034030: Codemirror dart port StringStream datatype babysteps. (Closed)

Created:
8 years, 11 months ago by pquitslund
Modified:
8 years, 11 months ago
Reviewers:
Bob Nystrom, dgrove, mattsh
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Codemirror dart port StringStream datatype babysteps. This is intended to be a pretty faithful port of codemirror (2.18). That source can be fetched here: http://codemirror.net/codemirror-2.18.zip I've attempted to emulate some of the idioms I've picked up from Bob's article and bits of the frog and core lib sources but I'm sure there will be some bits that cry foul to a seasoned darter. In other words, improvements, pointers, finger wags all greatly appreciated! Committed: https://code.google.com/p/dart/source/detail?r=2934

Patch Set 1 #

Total comments: 5

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -0 lines) Patch
A tools/codemirror/dart/LICENSE View 1 2 3 4 5 1 chunk +20 lines, -0 lines 0 comments Download
A tools/codemirror/dart/lib/codemirror.dart View 1 2 3 4 5 1 chunk +154 lines, -0 lines 0 comments Download
A tools/codemirror/dart/test/codemirror_tests.dart View 1 2 3 4 5 1 chunk +68 lines, -0 lines 0 comments Download
A tools/codemirror/dart/test/index.html View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
pquitslund
8 years, 11 months ago (2011-12-29 23:23:54 UTC) #1
mattsh
LGTM. couple very tiny nits below http://codereview.chromium.org/9034030/diff/1/tools/codemirror/dart/lib/codemirror.dart File tools/codemirror/dart/lib/codemirror.dart (right): http://codereview.chromium.org/9034030/diff/1/tools/codemirror/dart/lib/codemirror.dart#newcode3 tools/codemirror/dart/lib/codemirror.dart:3: // BSD-style license ...
8 years, 11 months ago (2011-12-30 13:48:15 UTC) #2
pquitslund
On 2011/12/30 13:48:15, mattsh wrote: > LGTM. couple very tiny nits below > > http://codereview.chromium.org/9034030/diff/1/tools/codemirror/dart/lib/codemirror.dart ...
8 years, 11 months ago (2012-01-02 04:18:29 UTC) #3
Bob Nystrom
8 years, 11 months ago (2012-01-04 00:22:40 UTC) #4
http://codereview.chromium.org/9034030/diff/1/tools/codemirror/dart/lib/codem...
File tools/codemirror/dart/lib/codemirror.dart (right):

http://codereview.chromium.org/9034030/diff/1/tools/codemirror/dart/lib/codem...
tools/codemirror/dart/lib/codemirror.dart:72: if
(cased(_string).indexOf(cased(pattern), _pos) != _pos) return false;
On 2011/12/30 13:48:16, mattsh wrote:
> my personal preference is braces around all 'if' branches, just for clarity,
so
> I'd have the { return false; } in braces, but your choice.

I believe we generally don't do braces for single-line ifs.

Powered by Google App Engine
This is Rietveld 408576698