Class: AdLint::GVarDcl
- Inherits:
-
CodeStructure
- Object
- CodeStructure
- AdLint::GVarDcl
- Defined in:
- lib/adlint/code.rb
Overview
DESCRIPTION
Global variable declaration information.
Instance Method Summary collapse
-
#initialize(loc, var_name, type_rep) ⇒ GVarDcl
constructor
DESCRIPTION Constructs the global variable declaration information.
Methods inherited from CodeStructure
Constructor Details
#initialize(loc, var_name, type_rep) ⇒ GVarDcl
DESCRIPTION
Constructs the global variable declaration information.
PARAMETER
- loc
-
Location – Location where the declaration appears.
- var_name
-
String – Global variable name.
- type_rep
-
String – Type of the global variable.
107 108 109 110 111 |
# File 'lib/adlint/code.rb', line 107 def initialize(loc, var_name, type_rep) @loc = loc @var_name = var_name @type_rep = type_rep end |