Method: AdLint::ReportUtil#write_vardef
- Defined in:
- lib/adlint/report.rb
#write_vardef(loc, linkage, scope_type, sc_type, var_name, type_rep) ⇒ Object Also known as: VARDEF
DESCRIPTION
Writes a variable definition information on the report.
Abbreviation below is available.
write_vardef(...) => VARDEF(...)
PARAMETER
- loc
-
Location – Location where the definition appears.
- linkage_type
-
String – Variable linkage type string.
- scope_type
-
String – Variable scope type string.
- sc_type
-
String – Variable storage class type.
- var_name
-
String – Variable name.
- type_rep
-
String – Variable type representation string.
RETURN VALUE
None.
283 284 285 286 |
# File 'lib/adlint/report.rb', line 283 def write_vardef(loc, linkage, scope_type, sc_type, var_name, type_rep) write_code_struct(VarDef.new(loc, linkage, scope_type, sc_type, var_name, type_rep)) end |