mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cleanup (formatting)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -57,12 +57,13 @@ public class FCTSBackedLighterAST extends LighterAST {
|
||||
return new LighterASTNodeList(numKids, elements);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disposeChildren(@NotNull List<LighterASTNode> children) {
|
||||
if (children instanceof LighterASTNodeList) {
|
||||
LighterASTNodeList nodes = (LighterASTNodeList)children;
|
||||
|
||||
myTreeStructure.disposeChildren(nodes.myElements, nodes.mySize);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
LighterASTNode[] astNodes = new LighterASTNode[children.size()];
|
||||
myTreeStructure.disposeChildren(children.toArray(astNodes), astNodes.length);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -114,7 +114,9 @@ public class LightTreeUtil {
|
||||
}
|
||||
|
||||
public static void toBuffer(@NotNull LighterAST tree, @NotNull LighterASTNode node, @NotNull StringBuilder buffer, @Nullable TokenSet skipTypes) {
|
||||
if (skipTypes != null && skipTypes.contains(node.getTokenType())) return;
|
||||
if (skipTypes != null && skipTypes.contains(node.getTokenType())) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (node instanceof LighterASTTokenNode) {
|
||||
buffer.append(((LighterASTTokenNode)node).getText());
|
||||
|
||||
Reference in New Issue
Block a user