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 12 years ago]