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

Initial commit of alloy-js/csharp #19

Merged
merged 5 commits into from
Sep 6, 2024

Conversation

jhendrixMSFT
Copy link
Contributor

Includes basic functionality including namespaces, classes and members, enums and members, and using directives with refkey support.

Includes basic functionality including namespaces, classes and members,
enums and members, and using directives with refkey support.
Copy link

pkg-pr-new bot commented Sep 6, 2024

Open in Stackblitz

@alloy-js/babel-plugin-alloy

pnpm add https://pkg.pr.new/alloy-framework/alloy/@alloy-js/babel-plugin-alloy@19

@alloy-js/babel-plugin-jsx-dom-expressions

pnpm add https://pkg.pr.new/alloy-framework/alloy/@alloy-js/babel-plugin-jsx-dom-expressions@19

babel-preset-alloy

pnpm add https://pkg.pr.new/alloy-framework/alloy/babel-preset-alloy@19

@alloy-js/core

pnpm add https://pkg.pr.new/alloy-framework/alloy/@alloy-js/core@19

@alloy-js/java

pnpm add https://pkg.pr.new/alloy-framework/alloy/@alloy-js/java@19

@alloy-js/prettier-plugin-alloy

pnpm add https://pkg.pr.new/alloy-framework/alloy/@alloy-js/prettier-plugin-alloy@19

@alloy-js/csharp

pnpm add https://pkg.pr.new/alloy-framework/alloy/@alloy-js/csharp@19

@alloy-js/typescript

pnpm add https://pkg.pr.new/alloy-framework/alloy/@alloy-js/typescript@19

commit: 624f0a9

return <core.Declaration symbol={thisClassSymbol}>
{csharp.getAccessModifier(props.accessModifier)}class <base.Name />{props.children ? (
<>
{"\n{"}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you should be able to include just an empty line? If not, that's a bug.

Copy link
Contributor

Choose a reason for hiding this comment

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

You can also consider a component which adds the braces for you, slightly more characters than {"{"} but less annoying to type maybe.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Empty line does work.

What's the idiom here? Having a blank line looks weird to me but if that's what folks do then I'll follow suit.

improve some element names
it generates the csproj file
@jhendrixMSFT jhendrixMSFT merged commit ec5b129 into alloy-framework:main Sep 6, 2024
4 checks passed
@jhendrixMSFT jhendrixMSFT deleted the alloy-csharp branch September 6, 2024 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants