Class: AdLint::VarDef

Inherits:
CodeStructure show all
Defined in:
lib/adlint/code.rb

Overview

DESCRIPTION

Variable definition information.

Instance Method Summary collapse

Methods inherited from CodeStructure

#print_as_csv, #to_s

Constructor Details

#initialize(loc, linkage, scope_type, sc_type, var_name, type_rep) ⇒ VarDef

DESCRIPTION

Constructs the variable definition information.

PARAMETER

loc

Location – Location where the definition appears.

linkage

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.



168
169
170
171
172
173
174
175
# File 'lib/adlint/code.rb', line 168

def initialize(loc, linkage, scope_type, sc_type, var_name, type_rep)
  @loc        = loc
  @linkage    = linkage
  @scope_type = scope_type
  @sc_type    = sc_type
  @var_name   = var_name
  @type_rep   = type_rep
end