INRIA / INRIA/spoon

Feature request: provide API to add blank lines

Open
#1,268 13 comments 0 reactions 0 assignees View on GitHub
feature good first issue help wanted
Dominant language
Java
Stars
2k
Forks
392
Avg merge
11h 24m
Merged PRs (30d)
36

Description

This is a simple feature request with no real business value but makes it a lot more easier to read through the source code.

# Usage

block.addStatement(getFactory().createCodeSnippetStatement("int i = 1"));
block.addStatement(getFactory().createBlankLine());
// or block.addBlankLine()
block.addStatement(getFactory().createCodeSnippetStatement("for (; i < 0; i++) {}));

# Current result

int i = 1;
for (; i < 0; i++) {}

# Expected result

int i = 1;

for (; i < 0; i++) {}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.