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

Issue 1844293003: Add generic types for strong mode (Closed)

Created:
4 years, 8 months ago by skybrian
Modified:
4 years, 8 months ago
Reviewers:
vsm, Leaf, Søren Gjesse
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/dart-protobuf.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add generic types for strong mode FieldInfo, Extension, and PbList should always be created with the correct reified type when in strong mode. This is still experimental (not tested with DDC). BUG=https://github.com/dart-lang/dart-protobuf/issues/54 R=leafp@google.com, sgjesse@google.com Committed: https://github.com/dart-lang/protobuf/commit/6d131e36f4c4b4b6ada59ab55f307a847e86bdd7

Patch Set 1 #

Patch Set 2 : oops, change all callers to use fi._createRepeatedField #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -69 lines) Patch
M CHANGELOG.md View 1 chunk +4 lines, -0 lines 0 comments Download
M lib/src/protobuf/builder_info.dart View 4 chunks +33 lines, -35 lines 0 comments Download
M lib/src/protobuf/extension.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/src/protobuf/extension_field_set.dart View 1 1 chunk +5 lines, -5 lines 4 comments Download
M lib/src/protobuf/field_info.dart View 3 chunks +11 lines, -2 lines 1 comment Download
M lib/src/protobuf/field_set.dart View 1 5 chunks +11 lines, -11 lines 3 comments Download
M lib/src/protobuf/field_type.dart View 2 chunks +1 line, -2 lines 0 comments Download
M lib/src/protobuf/generated_message.dart View 3 chunks +6 lines, -11 lines 0 comments Download
M lib/src/protobuf/readonly_message.dart View 1 chunk +1 line, -1 line 0 comments Download
M pubspec.yaml View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (2 generated)
skybrian
4 years, 8 months ago (2016-04-01 01:52:43 UTC) #2
Søren Gjesse
lgtm https://chromiumcodereview.appspot.com/1844293003/diff/20001/lib/src/protobuf/field_set.dart File lib/src/protobuf/field_set.dart (right): https://chromiumcodereview.appspot.com/1844293003/diff/20001/lib/src/protobuf/field_set.dart#newcode222 lib/src/protobuf/field_set.dart:222: if (value != null) return value as List/*<T>*/; ...
4 years, 8 months ago (2016-04-01 06:24:28 UTC) #3
Leaf
lgtm https://chromiumcodereview.appspot.com/1844293003/diff/20001/lib/src/protobuf/extension_field_set.dart File lib/src/protobuf/extension_field_set.dart (right): https://chromiumcodereview.appspot.com/1844293003/diff/20001/lib/src/protobuf/extension_field_set.dart#newcode46 lib/src/protobuf/extension_field_set.dart:46: if (list != null) return list as List/*<T>*/; ...
4 years, 8 months ago (2016-04-01 17:09:56 UTC) #4
skybrian
https://chromiumcodereview.appspot.com/1844293003/diff/20001/lib/src/protobuf/extension_field_set.dart File lib/src/protobuf/extension_field_set.dart (right): https://chromiumcodereview.appspot.com/1844293003/diff/20001/lib/src/protobuf/extension_field_set.dart#newcode46 lib/src/protobuf/extension_field_set.dart:46: if (list != null) return list as List/*<T>*/; On ...
4 years, 8 months ago (2016-04-01 18:01:40 UTC) #5
skybrian
https://chromiumcodereview.appspot.com/1844293003/diff/20001/lib/src/protobuf/extension_field_set.dart File lib/src/protobuf/extension_field_set.dart (right): https://chromiumcodereview.appspot.com/1844293003/diff/20001/lib/src/protobuf/extension_field_set.dart#newcode46 lib/src/protobuf/extension_field_set.dart:46: if (list != null) return list as List/*<T>*/; On ...
4 years, 8 months ago (2016-04-01 18:04:35 UTC) #6
Leaf
https://chromiumcodereview.appspot.com/1844293003/diff/20001/lib/src/protobuf/extension_field_set.dart File lib/src/protobuf/extension_field_set.dart (right): https://chromiumcodereview.appspot.com/1844293003/diff/20001/lib/src/protobuf/extension_field_set.dart#newcode46 lib/src/protobuf/extension_field_set.dart:46: if (list != null) return list as List/*<T>*/; On ...
4 years, 8 months ago (2016-04-01 18:15:59 UTC) #7
skybrian
4 years, 8 months ago (2016-04-01 19:17:31 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
6d131e36f4c4b4b6ada59ab55f307a847e86bdd7 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698