mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
Added append() method for composing instances of SpacingBuilder
This commit is contained in:
@@ -213,6 +213,11 @@ public class SpacingBuilder {
|
||||
return new RuleBuilder(before, after);
|
||||
}
|
||||
|
||||
public SpacingBuilder append(SpacingBuilder builder) {
|
||||
myRules.addAll(builder.myRules);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public Spacing getSpacing(Block parent, Block child1, Block child2) {
|
||||
if (!(parent instanceof ASTBlock) || !(child1 instanceof ASTBlock) || !(child2 instanceof ASTBlock)) {
|
||||
|
||||
Reference in New Issue
Block a user