Class: AdLint::GVarDcl

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

Overview

DESCRIPTION

Global variable declaration information.

Instance Method Summary collapse

Methods inherited from CodeStructure

#print_as_csv, #to_s

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