-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[pigeon] Creates new Generator classes for each language (v3) #3022
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
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
df851d5
Rename generator class to Adapter
tarrinneal e40d679
create new generator class and dart subclass
tarrinneal 8c4e2a0
cpp and dart test gen
tarrinneal bcdbdbc
added files
tarrinneal 31bb701
Adds Generator class to all generators
tarrinneal 06315ce
adds swift
tarrinneal 5675c64
Updates tests to use new Adapter naming scheme
tarrinneal a319b48
Dart generate methods
tarrinneal 6d7405d
convert all generate functions to use new method
tarrinneal 72a380c
Merge branch 'main' of github.com:flutter/packages into skeleton2
tarrinneal 1e59fef
chagngelog
tarrinneal 0964cd3
remove Generator class fields
tarrinneal f589da4
move paths to options
tarrinneal 637679d
remove dartTestOptions
tarrinneal 68a23e2
Nits and combines source and header generators
tarrinneal 67282cf
renames Adapter to GeneratorAdapter
tarrinneal d08606c
Update version number for breaking changes
tarrinneal 90fcb67
nits
tarrinneal ea0ec6c
more personal nits
tarrinneal 6206bad
Fixes dart header bug
tarrinneal 7c3d35c
add gen files for clarity
tarrinneal ef0b71a
Merge branch 'main' of github.com:flutter/packages into skeleton2
tarrinneal 8bf2dfb
better field naming
tarrinneal 8c6abf2
better field naming
tarrinneal 93a5d1b
removed unneeded dart test generator
tarrinneal 710d1a1
Add filetype to generator
tarrinneal d189d11
Adds filetype as field to generatorAdapters
tarrinneal daae569
Merge branch 'main' of github.com:flutter/packages into skeleton2
tarrinneal 88905e3
Merge branch 'main' of github.com:flutter/packages into skeleton2
tarrinneal 29decb9
nits
tarrinneal b7abbe4
assert
tarrinneal 03c44ca
Default FileType
tarrinneal 9901dc5
alt v4
tarrinneal fe4cb18
alt v5
tarrinneal 922ba3c
nits
tarrinneal 6ca70be
Merge branch 'main'
tarrinneal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| // Copyright 2013 The Flutter Authors. All rights reserved. | ||
| // Use of this source code is governed by a BSD-style license that can be | ||
| // found in the LICENSE file. | ||
|
|
||
| import 'ast.dart'; | ||
|
|
||
| /// A superclass of generator classes. | ||
| /// | ||
| /// This provides the structure that is common across generators for different languages. | ||
| abstract class Generator<T> { | ||
| /// Generates files for specified language with specified [languageOptions] | ||
| void generate(T languageOptions, Root root, StringSink sink); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.