Skip to content

Move generator options into generator.dart #2100

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

Merged
merged 8 commits into from
Jan 7, 2020

Conversation

jdkoren
Copy link
Contributor

@jdkoren jdkoren commented Dec 18, 2019

(on top of #2098 - compare here)

Moved options that configure the generator to generator.dart. These can be used by more than one generator in the future.

@googlebot googlebot added the cla: yes Google CLA check succeeded. label Dec 18, 2019
@jcollins-g
Copy link
Contributor

I'll take a second look once the base lands. My main concern here is it seems like a lot of parameters, while they theoretically could apply to different generators, will change radically in behavior (for example, the templates directory I assume might not contain HTML?).

It's probably fine for now, but it'll be necessary to clarify this more once we actually have different generators.

@jdkoren
Copy link
Contributor Author

jdkoren commented Jan 2, 2020

Yeah, it might not actually be necessary/worthwhile to split base vs html generator options. I'll ponder this a little more.

@jdkoren jdkoren force-pushed the generator_context branch from 9ae5bce to 4f27b8f Compare January 3, 2020 23:02
@jdkoren jdkoren changed the title Split up base generator options from html ones Move generator options into generator.dart Jan 3, 2020
@jdkoren
Copy link
Contributor Author

jdkoren commented Jan 3, 2020

Recombined the base and html options into one GeneratorContext, so this mostly amounts to moving some stuff from html_generator.dart to generator.dart.

@jdkoren jdkoren force-pushed the generator_context branch from 4f27b8f to 17e6db2 Compare January 7, 2020 15:47
@jdkoren jdkoren merged commit fc3fe59 into dart-lang:master Jan 7, 2020
@jdkoren jdkoren deleted the generator_context branch January 7, 2020 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants