use of meghanada.typeinfo.TypeInfo in project meghanada-server by mopemope.
the class CommandHandler method typeInfo.
public void typeInfo(final long id, final String path, final String line, final String col, final String symbol) {
final int lineInt = Integer.parseInt(line);
final int columnInt = Integer.parseInt(col);
try {
Optional<TypeInfo> typeInfo = session.typeInfo(path, lineInt, columnInt, symbol);
if (typeInfo.isPresent()) {
final String out = outputFormatter.typeInfo(id, typeInfo.get());
writer.write(out);
} else {
TypeInfo dummy = new TypeInfo("");
final String out = outputFormatter.typeInfo(id, dummy);
writer.write(out);
}
writer.newLine();
writer.flush();
} catch (Throwable t) {
writeError(id, t);
}
}
Aggregations