Reformat LightTree2Fir class to be able to parse block of code

This commit is contained in:
Ivan Cilcic
2019-07-11 21:43:29 +03:00
committed by Mikhail Glukhikh
parent bfe83d0bfd
commit be073ce2e6
7 changed files with 66 additions and 19 deletions
@@ -16,4 +16,10 @@ public class MyKotlinParser {
return builder.getLightTree();
}
public static FlyweightCapableTreeStructure<LighterASTNode> parseBlockExpression(PsiBuilder builder) {
KotlinParsing ktParsing = KotlinParsing.createForTopLevel(new SemanticWhitespaceAwarePsiBuilderImpl(builder));
ktParsing.parseBlockExpression();
return builder.getLightTree();
}
}