File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
pmd-scala-modules/pmd-scala-common/src/main/java/net/sourceforge/pmd/lang/scala/ast Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1111import scala .meta .Dialect ;
1212import scala .meta .Source ;
1313import scala .meta .inputs .Input ;
14- import scala .meta .internal . parsers .ScalametaParser ;
14+ import scala .meta .parsers .Parse ;
1515
1616/**
1717 * Scala's Parser implementation. Defers parsing to the scala compiler via
@@ -24,7 +24,7 @@ public final class ScalaParser implements Parser {
2424 public ASTSource parse (ParserTask task ) throws ParseException {
2525 Input .VirtualFile virtualFile = new Input .VirtualFile (task .getFileId ().getAbsolutePath (), task .getSourceText ());
2626 Dialect dialect = ScalaDialect .dialectOf (task .getLanguageVersion ());
27- Source src = new ScalametaParser ( virtualFile , dialect ).parseSource ();
27+ Source src = Parse . parseSource (). apply ( virtualFile , dialect ).get ();
2828 ASTSource root = (ASTSource ) new ScalaTreeBuilder ().build (src );
2929 root .addTaskInfo (task );
3030 return root ;
You can’t perform that action at this time.
0 commit comments