Reformat LightTree2Fir class to be able to parse block of code
This commit is contained in:
committed by
Mikhail Glukhikh
parent
bfe83d0bfd
commit
be073ce2e6
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user