8000 Miscelaneous minor improvements by kzu · Pull Request #100 · devlooped/stunts · GitHub
[go: up one dir, main page]

Skip to content
8000

Miscelaneous minor improvements - #100

Merged
kzu merged 6 commits into
mainfrom
feature/misc
Feb 12, 2021
Merged

kzu merged 6 commits into
mainfrom
feature/misc

Conversation

@kzu
@kzu kzu commented Feb 12, 2021
Copy link
Copy Markdown
Member

No description provided.

kzu added 4 commits February 12, 2021 13:21
Emitting source files by setting `EmitCompilerGeneratedFiles=true` in the project file is a very convenient way to explore and debug with full sources the output of source generators.

In order to make the experience even better, we could improve the formatting a bit, by properly adding missing newlines here and there, only when said flag is set (which would likely be while debugging/learning about a Avatar's internals).

Fixes #98.
We had already updated the readme, missing the sync with the package.
The SyntaxExtensions is already C#-only, so no need to have that *and* a CSharpSyntaxExtensions.
Invoke `Get<T>` or `GetNullable<T>` depending on the argument type being retrieved, so that we never generate code that has nullable warnings.

Fixes #99.
@kzu
kzu enabled auto-merge (rebase) February 12, 2021 16:26
kzu added 2 commits February 12, 2021 13:39
This makes them mostly an example of what generated avatars look like,
but otherwise functionally 100% equivalent to source-generated avatars.

Note that we don't pack avatars in ManualAvatars to avoid collisions.
Since the package is installed as source, the type names of generated
avatars would collide with the included "manual" avatars, so don't pack them.

We are including them in the source so they can be explored in Avatar'
source itself for learning/troubleshooting.
@kzu
kzu merged commit 2adfbbf into main Feb 12, 2021
@kzu
kzu deleted the feature/misc branch February 12, 2021 16:54
@devlooped devlooped locked and limited conversation to collaborators Oct 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0