DisambiguateTypeAnnotations.java 文件源码

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

项目:turbine 作者:
private static MethodInfo bindMethod(Env<ClassSymbol, TypeBoundClass> env, MethodInfo base) {
  ImmutableList.Builder<AnnoInfo> declarationAnnotations = ImmutableList.builder();
  Type returnType =
      disambiguate(
          env,
          base.name().equals("<init>") ? ElementType.CONSTRUCTOR : ElementType.METHOD,
          base.returnType(),
          base.annotations(),
          declarationAnnotations);
  return new MethodInfo(
      base.sym(),
      base.tyParams(),
      returnType,
      bindParameters(env, base.parameters()),
      base.exceptions(),
      base.access(),
      base.defaultValue(),
      base.decl(),
      declarationAnnotations.build(),
      base.receiver() != null ? bindParam(env, base.receiver()) : null);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号