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

API for creating a CodeBlock Statement directly #852

Open
anantharaman93 opened this issue Sep 10, 2021 · 2 comments
Open

API for creating a CodeBlock Statement directly #852

anantharaman93 opened this issue Sep 10, 2021 · 2 comments

Comments

@anantharaman93
Copy link

Similar to how CodeBlock.of(...) which is equitant to CodeBlock.builder().add(...).build() is provided, kindly consider providing CodeBlock.ofStatement(...) which is equivalent to CodeBlock.builder().addStatement("...").build()

@baiyanlali
Copy link

We tried to add a static method in CodeBlock to creating a CodeBlockStatement directly. Please check it out #875

@wyyfffff
Copy link

We modify the code by add method of(CodeBlock codeBlock) and ofStatement(CodeBlock codeBlock)

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

No branches or pull requests

3 participants