Class: AdLint::TypeDcl

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

Overview

DESCRIPTION

Type declaration information.

Instance Method Summary collapse

Methods inherited from CodeStructure

#print_as_csv, #to_s

Constructor Details

#initialize(loc, dcl_type, type_name, type_rep) ⇒ TypeDcl

DESCRIPTION

Constructs the type declaration information.

PARAMETER

loc

Location – Location where the declaration appears.

dcl_type

String – Type string of the type declaration.

type_name

String – Type name.

type_rep

String – Type representation.



79
80
81
82
83
84
# File 'lib/adlint/code.rb', line 79

def initialize(loc, dcl_type, type_name, type_rep)
  @loc       = loc
  @dcl_type  = dcl_type
  @type_name = type_name
  @type_rep  = type_rep
end