You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
扩展操作数是表示 L op R op R2 op R3... 形式的深度嵌套表达式的首选方式,
其中相同的运算符出现在所有操作数之间(最常见的情况是冗长的字符串连接
表达式)。 使用扩展的操作数可以防止树变得太深; 这降低了遍历此类树时
在运行时耗尽线程堆栈空间的风险。 ((a + b) + c) + d 将被翻译为:
leftOperand: a rightOperand: b extendedOperands: {c, d} operator: +
对于 a + b + c 这种表达式
jdt 为了减少树的深度,不会将它拆开
extendedOperands
方法 jdt 官方描述:因此在 gen.java 下的
ExpressionVisitor.java
1321 行相关代码:需要对此种连加情况特殊处理
The text was updated successfully, but these errors were encountered: