Class: VoidType
Direct Known Subclasses
Instance Method Summary collapse
-
#check ⇒ Object
意味的誤りがあれば、文字列を返す.
- #check_init(locale, ident, initializer, kind, attribute = nil) ⇒ Object
- #get_type_str ⇒ Object
- #get_type_str_post ⇒ Object
- #show_tree(indent) ⇒ Object
Methods inherited from Type
#cast, #check_struct_tag, #clear_max, #equal?, #get_ID_str, #get_bit_size, #get_original_type, #has_pointer?, #has_sized_pointer?, #has_unsized_string?, #initialize, #is_const?, #is_void?, #is_volatile?, #print_info, #print_info_post, print_info_post, reset_print_info, #set_qualifier, #set_scs
Methods inherited from Node
#cdl_error, #cdl_error2, #cdl_error3, #cdl_info, #cdl_info2, #cdl_warning, #cdl_warning2, #get_locale, #initialize, #locale_str, #set_locale
Constructor Details
This class inherits a constructor from Type
Instance Method Details
#check ⇒ Object
意味的誤りがあれば、文字列を返す
347 348 349 |
# File 'lib/tecsgen/core/types.rb', line 347 def check # 意味的誤りがあれば、文字列を返す nil end |
#check_init(locale, ident, initializer, kind, attribute = nil) ⇒ Object
351 352 353 |
# File 'lib/tecsgen/core/types.rb', line 351 def check_init(locale, ident, initializer, kind, attribute = nil) cdl_error2(locale, "T1007 $1: void type variable cannot have initializer", ident) end |
#get_type_str ⇒ Object
355 356 357 |
# File 'lib/tecsgen/core/types.rb', line 355 def get_type_str "#{super}void" end |
#get_type_str_post ⇒ Object
359 360 361 |
# File 'lib/tecsgen/core/types.rb', line 359 def get_type_str_post "" end |
#show_tree(indent) ⇒ Object
363 364 365 366 367 |
# File 'lib/tecsgen/core/types.rb', line 363 def show_tree(indent) indent.times { print " " } puts "VoidType #{locale_str}" super(indent + 1) end |