![Avatar](https://secure.gravatar.com/avatar/9d0b7b18a7b2f8d9fa43d17ddc470b03.jpg?s=64&d=identicon&r=g)
When generating the AST node classes from the language designer, is it possible to generate the node properties as virtual?
For example:
public partial class Expression : AstNodeBase {
private DataType computedTypeValue;
public override Int32 Id {
get {
return FormulaAstNodeId.Expression;
}
}
public DataType ComputedType {
get {
return this.computedTypeValue;
}
set {
this.computedTypeValue = value;
}
}
}
Becomes
public partial class Expression : AstNodeBase {
private DataType computedTypeValue;
public override Int32 Id {
get {
return FormulaAstNodeId.Expression;
}
}
public virtual DataType ComputedType {
get {
return this.computedTypeValue;
}
set {
this.computedTypeValue = value;
}
}
}
[Modified 11 years ago]