classCachedAttribute[T <: AnyRef, U] extends (T) ⇒ U
An attribute of a node type T with value of type U, supported by a memo
table and circularity test. The value of the attribute is computed by
the function f. The result is memoised so that it is only evaluated once.
f should not itself require the value of this attribute. If it does, a
circularity error is reported by throwing an IllegalStateException.
An attribute of a node type
Twith value of typeU, supported by a memo table and circularity test. The value of the attribute is computed by the functionf. The result is memoised so that it is only evaluated once.fshould not itself require the value of this attribute. If it does, a circularity error is reported by throwing anIllegalStateException.