X Tutup
Skip to content

recording query fields#4344

Closed
vsavkin wants to merge 1 commit intoangular:masterfrom
vsavkin:transformers_field_query
Closed

recording query fields#4344
vsavkin wants to merge 1 commit intoangular:masterfrom
vsavkin:transformers_field_query

Conversation

@vsavkin
Copy link
Copy Markdown
Contributor

@vsavkin vsavkin commented Sep 23, 2015

No description provided.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider:

new Map.fromIterable(queryFields, value: (_) => 'Object');

@vsavkin vsavkin force-pushed the transformers_field_query branch from fe67b7a to e9fbfbe Compare September 25, 2015 16:19
@vsavkin vsavkin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 25, 2015
@vsavkin vsavkin changed the title WIP: recording query fields recording query fields Sep 25, 2015
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than type-casting here, consider doing something like:

var queries = node.expression.accept(_evaluator);
if (queries is! Map) {
  throw new FormatException(
    'Expected a map value for "queries", but got  ${node.expression}',
    node.toSource());
}
queryFields.addAll(queries.keys);

Or you could just store the map and get rid of asMap()

@kegluneq kegluneq added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Sep 25, 2015
@kegluneq kegluneq assigned vsavkin and unassigned kegluneq Sep 25, 2015
@vsavkin vsavkin force-pushed the transformers_field_query branch from e9fbfbe to 595264e Compare September 25, 2015 20:37
@vsavkin vsavkin added the action: merge The PR is ready for merge by the caretaker label Sep 25, 2015
@mary-poppins
Copy link
Copy Markdown

Merging PR #4344 on behalf of @vsavkin to branch presubmit-vsavkin-pr-4344.

@mary-poppins mary-poppins removed the action: merge The PR is ready for merge by the caretaker label Sep 25, 2015
@vsavkin vsavkin force-pushed the transformers_field_query branch from 595264e to 1a075d5 Compare September 25, 2015 22:16
@vsavkin vsavkin added the action: merge The PR is ready for merge by the caretaker label Sep 25, 2015
@mary-poppins
Copy link
Copy Markdown

Merging PR #4344 on behalf of @vsavkin to branch presubmit-vsavkin-pr-4344.

@mary-poppins mary-poppins removed the action: merge The PR is ready for merge by the caretaker label Sep 25, 2015
@vsavkin vsavkin closed this in 589ce31 Sep 25, 2015
@angular-automatic-lock-bot
Copy link
Copy Markdown

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 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews cla: yes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

X Tutup