Merge pull request #521 from Bl3nd/go-to-enhancement
Some checks failed
Build BCV / build (11) (push) Has been cancelled
Build BCV / build (17) (push) Has been cancelled
Build BCV / build (21) (push) Has been cancelled
Build BCV / build (8) (push) Has been cancelled

A small update to parsing
This commit is contained in:
Konloch 2024-10-07 17:09:51 -07:00 committed by GitHub
commit edadceba64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

AI 샘플 코드 생성 중입니다

Loading...
3 changed files with 11 additions and 10 deletions

View File

@ -513,6 +513,7 @@ public class BytecodeViewPanelUpdater implements Runnable
if (token == null)
{
highlighterEx.clearMarkOccurrencesHighlights();
errorStripe.refreshMarkers();
return;
}
}

View File

@ -56,7 +56,7 @@ public class ClassFileContainer
{
if (shouldParse())
{
TypeSolver typeSolver = new CombinedTypeSolver(new ReflectionTypeSolver(false), new JarTypeSolver(path));
TypeSolver typeSolver = new CombinedTypeSolver(new ReflectionTypeSolver(true), new JarTypeSolver(path));
JavaParser parser = new JavaParser();
parser.getParserConfiguration().setSymbolResolver(new JavaSymbolSolver(typeSolver));
ParseResult<CompilationUnit> parse = parser.parse(this.content);

View File

@ -347,7 +347,7 @@ public class MyVoidVisitor extends VoidVisitorAdapter<Object>
new ClassReferenceLocation(getOwner(classFileContainer),
packagePath, "", "reference", classValue.line, classValue.columnStart, classValue.columnEnd + 1));
}
catch (ClassCastException | UnsupportedOperationException | IllegalArgumentException e)
catch (Exception e)
{
printException(n, e);
}
@ -424,7 +424,7 @@ public class MyVoidVisitor extends VoidVisitorAdapter<Object>
signature, parameters, "declaration", constructor.line, constructor.columnStart,
constructor.columnEnd + 1));
}
catch (RuntimeException e)
catch (Exception e)
{
printException(n, e);
}