ParenthesizedExpressionImpl extends PyTree implements ParenthesizedExpression, HasTypeDependencies { @Override public InferredType type() { return expression.type(); } ParenthesizedExpressionImpl(Token leftParenthesis, Expression expression, Token rightParenthesis); @Override Token leftParenthesis(); @Override Expression expression(); @Override Token rightParenthesis(); @Override void accept(TreeVisitor visitor); @Override List<Tree> computeChildren(); @Override Kind getKind(); @Override InferredType type(); @Override List<Expression> typeDependencies();  }
@Test public void type() { assertThat(lastExpression("(42)").type()).isEqualTo(INT); assertThat(lastExpression("('hello')").type()).isEqualTo(STR); assertThat(lastExpression("(xxx)").type()).isEqualTo(InferredTypes.anyType()); }