本文整理汇总了C#中PascalABCCompiler.SyntaxTree.type_definition类的典型用法代码示例。如果您正苦于以下问题:C# type_definition类的具体用法?C# type_definition怎么用?C# type_definition使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
type_definition类属于PascalABCCompiler.SyntaxTree命名空间,在下文中一共展示了type_definition类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: NewAsIsConstexpr
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;
}
示例2: pair_type_stlist
///<summary>
///Конструктор с параметрами.
///</summary>
public pair_type_stlist(type_definition _tn,statement_list _exprs)
{
this._tn=_tn;
this._exprs=_exprs;
}
示例3: visit
public void visit(type_definition _type_definition)
{
bw.Write((Int16)14);
write_type_definition(_type_definition);
}
示例4: NewAsIsExpr
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;
}
示例5: BuildSimpleReadWriteProperty
public static simple_property BuildSimpleReadWriteProperty(ident name, ident field, type_definition type)
{
return new simple_property(name, type, new property_accessors(new read_accessor_name(field), new write_accessor_name(field)));
}
示例6: simple_property
///<summary>
///Конструктор с параметрами.
///</summary>
public simple_property(ident _property_name,type_definition _property_type,expression _index_expression,property_accessors _accessors,property_array_default _array_default,property_parameter_list _parameter_list,definition_attribute _attr,SourceContext sc)
{
this._property_name=_property_name;
this._property_type=_property_type;
this._index_expression=_index_expression;
this._accessors=_accessors;
this._array_default=_array_default;
this._parameter_list=_parameter_list;
this._attr=_attr;
source_context = sc;
}
示例7: typed_const_definition
///<summary>
///Конструктор с параметрами.
///</summary>
public typed_const_definition(ident _const_name,expression _const_value,type_definition _const_type)
{
this._const_name=_const_name;
this._const_value=_const_value;
this._const_type=_const_type;
}
示例8: array_type
///<summary>
///Конструктор с параметрами.
///</summary>
public array_type(indexers_types _indexers,type_definition _elements_type)
{
this._indexers=_indexers;
this._elements_type=_elements_type;
}
示例9: ref_type
///<summary>
///Конструктор с параметрами.
///</summary>
public ref_type(type_definition_attr_list _attr_list,type_definition _pointed_to,SourceContext sc)
{
this._attr_list=_attr_list;
this._pointed_to=_pointed_to;
source_context = sc;
}
示例10: for_node
///<summary>
///Конструктор с параметрами.
///</summary>
public for_node(ident _loop_variable,expression _initial_value,expression _finish_value,statement _statements,for_cycle_type _cycle_type,expression _increment_value,type_definition _type_name,bool _create_loop_variable,SourceContext sc)
{
this._loop_variable=_loop_variable;
this._initial_value=_initial_value;
this._finish_value=_finish_value;
this._statements=_statements;
this._cycle_type=_cycle_type;
this._increment_value=_increment_value;
this._type_name=_type_name;
this._create_loop_variable=_create_loop_variable;
source_context = sc;
}
示例11: type_declaration
///<summary>
///Конструктор с параметрами.
///</summary>
public type_declaration(ident _type_name,type_definition _type_def)
{
this._type_name=_type_name;
this._type_def=_type_def;
}
示例12: typed_parameters
///<summary>
///Конструктор с параметрами.
///</summary>
public typed_parameters(ident_list _idents,type_definition _vars_type,parametr_kind _param_kind,expression _inital_value)
{
this._idents=_idents;
this._vars_type=_vars_type;
this._param_kind=_param_kind;
this._inital_value=_inital_value;
}
示例13: BuildShortFuncDefinition
public static procedure_definition BuildShortFuncDefinition(formal_parameters fp, procedure_attributes_list att, method_name name, type_definition result, expression ex, SourceContext headsc)
{
var ff = new function_header(fp, att, name, null, result, headsc);
procedure_definition pd = BuildShortProcFuncDefinition(ff, new assign("Result", ex, ex.source_context));
return pd;
}
示例14: NewForStmt
public for_node NewForStmt(bool opt_var, ident identifier, type_definition for_stmt_decl_or_assign, expression expr1, for_cycle_type fc_type, expression expr2, token_info opt_tk_do, statement stmt, LexLocation loc)
{
var nfs = new for_node(identifier, expr1, expr2, stmt, fc_type, null, for_stmt_decl_or_assign, opt_var != false, loc);
if (opt_tk_do == null)
{
file_position fp = expr2.source_context.end_position;
syntax_tree_node err_stn = stmt;
if (err_stn == null)
err_stn = expr2;
parsertools.errors.Add(new PABCNETUnexpectedToken(parsertools.CurrentFileName, StringResources.Get("TKDO"), new SourceContext(fp.line_num, fp.column_num + 1, fp.line_num, fp.column_num + 1, 0, 0), err_stn));
}
return nfs;
}
示例15: function_header
///<summary>
///Конструктор с параметрами.
///</summary>
public function_header(type_definition _return_type)
{
this._return_type=_return_type;
}