示例#1
0
	static ValueTypes ConstantType(Racr.AstNode n) {
		var val = n.GetValue();
		if (val is bool) return ValueTypes.Boolean;
		if (val is double) return ValueTypes.Number;
		if (val is string) return ValueTypes.String;
		return ValueTypes.ErrorType;
	}
示例#2
0
	static object ConstantValue(Racr.AstNode n) { return n.GetValue(); }
示例#3
0
	static object OrdinaryQuestionValue(Racr.AstNode n) { return n.GetValue(); }