ProtoFiles.java 文件源码

java
阅读 23 收藏 0 点赞 0 评论 0

项目:protobuf-el 作者:
@SuppressWarnings("unused")
private ParsedContext parseFile(final File rootDir, final String protoName) {
  Throwable exception = null;

  try {
    final File file = new File(rootDir, protoName);
    final ANTLRFileStream ais = new ANTLRFileStream(file.getCanonicalPath());
    return parseProto(ais, protoName);
  } catch (final IOException e) {
    exception = e;
  } finally {
    if (exception != null) {
      throw new RuntimeException(exception);
    }
  }

  return null;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号