Class: AdLint::Cc1::Declarator
Instance Attribute Summary collapse
Attributes inherited from SyntaxNode
#head_token, #subsequent_sequence_point, #tail_token
Instance Method Summary
collapse
Methods inherited from SyntaxNode
#head_location, #inspect, #location, #short_class_name, #tail_location
#analysis_target?
Methods included from Visitable
#accept
Constructor Details
Returns a new instance of Declarator.
3050
3051
3052
3053
3054
|
# File 'lib/adlint/cc1/syntax.rb', line 3050
def initialize
super
@pointer = nil
@full = false
end
|
Instance Attribute Details
Returns the value of attribute pointer.
3056
3057
3058
|
# File 'lib/adlint/cc1/syntax.rb', line 3056
def pointer
@pointer
end
|
Instance Method Details
#abstract? ⇒ Boolean
3062
3063
3064
|
# File 'lib/adlint/cc1/syntax.rb', line 3062
def abstract?
false
end
|
3093
3094
3095
|
# File 'lib/adlint/cc1/syntax.rb', line 3093
def base
subclass_responsibility
end
|
#full=(dcr_is_full) ⇒ Object
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
|
# File 'lib/adlint/cc1/syntax.rb', line 3066
def full=(dcr_is_full)
@full = dcr_is_full
if dcr_is_full
append_sequence_point!
else
delete_sequence_point!
end
end
|
#full? ⇒ Boolean
3089
3090
3091
|
# File 'lib/adlint/cc1/syntax.rb', line 3089
def full?
@full
end
|
#function? ⇒ Boolean
3097
3098
3099
|
# File 'lib/adlint/cc1/syntax.rb', line 3097
def function?
subclass_responsibility
end
|
#identifier ⇒ Object
3058
3059
3060
|
# File 'lib/adlint/cc1/syntax.rb', line 3058
def identifier
subclass_responsibility
end
|
#identifier_list ⇒ Object
3113
3114
3115
|
# File 'lib/adlint/cc1/syntax.rb', line 3113
def identifier_list
subclass_responsibility
end
|
#innermost_parameter_type_list ⇒ Object
3109
3110
3111
|
# File 'lib/adlint/cc1/syntax.rb', line 3109
def innermost_parameter_type_list
subclass_responsibility
end
|
#parameter_type_list ⇒ Object
3105
3106
3107
|
# File 'lib/adlint/cc1/syntax.rb', line 3105
def parameter_type_list
subclass_responsibility
end
|
#variable? ⇒ Boolean
3101
3102
3103
|
# File 'lib/adlint/cc1/syntax.rb', line 3101
def variable?
!function?
end
|