public SymbolInfo(constant_definition_node value) { //_name_information_type=name_information_type.nit_constant_defnition; _sym_info = value; _access_level = access_level.al_public; _symbol_kind = symbol_kind.sk_none; }
private void init_constants(SymbolTable.Scope sc) { _true_constant = new bool_const_node(true, _bool_type); _false_constant = new bool_const_node(false, _bool_type); _true_constant_definition = new constant_definition_node(compiler_string_consts.true_const_name, _true_constant); _false_constant_definition = new constant_definition_node(compiler_string_consts.false_const_name, _false_constant); sc.AddSymbol(compiler_string_consts.true_const_name, new SymbolInfo(_true_constant_definition)); sc.AddSymbol(compiler_string_consts.false_const_name, new SymbolInfo(_false_constant_definition)); }
private void init_constants(SymbolTable.Scope sc) { _true_constant=new bool_const_node(true,_bool_type); _false_constant=new bool_const_node(false,_bool_type); _true_constant_definition=new constant_definition_node(compiler_string_consts.true_const_name,_true_constant); _false_constant_definition=new constant_definition_node(compiler_string_consts.false_const_name,_false_constant); sc.AddSymbol(compiler_string_consts.true_const_name,new SymbolInfo(_true_constant_definition)); sc.AddSymbol(compiler_string_consts.false_const_name,new SymbolInfo(_false_constant_definition)); }