Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

angular2 library: need finals #1485

Closed
2 tasks
kevmoo opened this issue Apr 21, 2015 · 11 comments
Closed
2 tasks

angular2 library: need finals #1485

kevmoo opened this issue Apr 21, 2015 · 11 comments
Assignees
Labels
effort1: hours feature Issue that requests a new feature
Milestone

Comments

@kevmoo
Copy link
Contributor

kevmoo commented Apr 21, 2015

  • All tokens
  • defaultPipes - src/change_detection/change_detection.dart

If this relates to a tweaks to another tool, great. I'd love to keep this open until it's resolved, though.

@kevmoo kevmoo added the #dart label Apr 21, 2015
@mhevery mhevery added this to the M10: Sugar milestone Apr 27, 2015
@mhevery mhevery modified the milestones: Backlog, M10, M11 May 29, 2015
@mprobst
Copy link
Contributor

mprobst commented Jun 12, 2015

Sorry, I don't understand the issue description (NO_CHANGE? All tokens?). Can you expand? Does this relate to the const vs final issue we discussed?

@mprobst
Copy link
Contributor

mprobst commented Jun 19, 2015

@kevmoo ping?

@kevmoo
Copy link
Contributor Author

kevmoo commented Jun 22, 2015

@mprobst Digging in now. Will provide details shortly.

@kevmoo
Copy link
Contributor Author

kevmoo commented Jun 22, 2015

src/change_detection/change_detection.dart. defaultPipes is a mutable hash.

var defaultPipes = {
  "iterableDiff": iterableDiff,
  "keyValDiff": keyValDiff,
  "async": async,
  "uppercase": uppercase,
  "lowercase": lowercase,
  "json": json
};

Ideally, it'd be

const Map defaultPipes = const <String, dynamic>{
  "iterableDiff": iterableDiff,
  "keyValDiff": keyValDiff,
  "async": async,
  "uppercase": uppercase,
  "lowercase": lowercase,
  "json": json
};

@mprobst
Copy link
Contributor

mprobst commented Jun 23, 2015

@kevmoo we do support const hashes:

const defaultPipes = CONST_EXPR({
  "iterableDiff": iterableDiff,
  "keyValDiff": keyValDiff,
  "async": async,
  "uppercase": uppercase,
  "lowercase": lowercase,
  "json": json
});

@mprobst
Copy link
Contributor

mprobst commented Jun 23, 2015

I see, you're already fixing it :-)

@kevmoo
Copy link
Contributor Author

kevmoo commented Jun 23, 2015

@mprobst I'm blocked, though. Can you help with dart-archive/ts2dart#217 ?

@yjbanov
Copy link
Contributor

yjbanov commented Jun 25, 2015

Does this issue need more work? Should it be closed? If not, would it be reasonable to expect that it will be closed in alpha-29?

kevmoo added a commit that referenced this issue Jun 25, 2015
Also appComponent(Ref|Type)Token

Related to #1485
@mprobst
Copy link
Contributor

mprobst commented Jun 25, 2015

I think this should be fixed. @kevmoo ?

@kevmoo
Copy link
Contributor Author

kevmoo commented Jun 26, 2015

I've got a CL landed that takes care of this for top-level members in the angular2 lib.

I think there are a lot more places where things should be final, but top-level members – since they are shared – are clearly the most important.

We may just need to do an occasional review of the API to find bad examples.

@kevmoo kevmoo closed this as completed Jun 26, 2015
jimthedev pushed a commit to jimthedev/angular that referenced this issue Jun 30, 2015
Also appComponent(Ref|Type)Token

Related to angular#1485
jimthedev pushed a commit to jimthedev/angular that referenced this issue Jun 30, 2015
Also appComponent(Ref|Type)Token

Related to angular#1485
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
effort1: hours feature Issue that requests a new feature
Projects
None yet
Development

No branches or pull requests

4 participants