public typecast_node NewAsIsConstexpr(expression constterm, op_typecast typecastop, type_definition tdef, LexLocation loc) { var naic = new typecast_node(constterm as addressed_value, tdef, typecastop, loc); if (!(constterm is addressed_value)) parsertools.errors.Add(new bad_operand_type(parsertools.CurrentFileName, constterm.source_context, naic)); return naic; }
public typecast_node NewAsIsExpr(syntax_tree_node term, op_typecast typecast_op, type_definition simple_or_template_type_reference, LexLocation loc) { var naie = new typecast_node((addressed_value)term, simple_or_template_type_reference, typecast_op, loc); if (!(term is addressed_value)) { parsertools.errors.Add(new bad_operand_type(parsertools.CurrentFileName, term.source_context, naie)); } return(naie); }
public typecast_node NewAsIsConstexpr(expression constterm, op_typecast typecastop, type_definition tdef, LexLocation loc) { var naic = new typecast_node(constterm as addressed_value, tdef, typecastop, loc); if (!(constterm is addressed_value)) { parsertools.errors.Add(new bad_operand_type(parsertools.CurrentFileName, constterm.source_context, naic)); } return(naic); }
public typecast_node NewAsIsExpr(syntax_tree_node term, op_typecast typecast_op, type_definition simple_or_template_type_reference, LexLocation loc) { var naie = new typecast_node((addressed_value)term, simple_or_template_type_reference, typecast_op, loc); if (!(term is addressed_value)) parsertools.errors.Add(new bad_operand_type(parsertools.CurrentFileName, term.source_context, naie)); return naie; }
///<summary> ///Конструктор с параметрами. ///</summary> public typecast_node(addressed_value _expr,type_definition _type_def,op_typecast _cast_op,SourceContext sc) { this._expr=_expr; this._type_def=_type_def; this._cast_op=_cast_op; source_context = sc; }
///<summary> ///Конструктор с параметрами. ///</summary> public typecast_node(addressed_value _expr,type_definition _type_def,op_typecast _cast_op) { this._expr=_expr; this._type_def=_type_def; this._cast_op=_cast_op; }