Class: AdLint::FunDcl

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

Overview

DESCRIPTION

Function declaration information.

Instance Method Summary collapse

Methods inherited from CodeStructure

#print_as_csv, #to_s

Constructor Details

#initialize(loc, linkage, scope_type, dcl_type, fun_id) ⇒ FunDcl

DESCRIPTION

Constructs the function declaration information.

PARAMETER

loc

Location – Location where the declaration appears.

linkage

String – Function linkage type string.

scope_type

String – Declaration scope type string.

dcl_type

String – Declaration type string.

fun_id

FunctionId – Identifier of the function.



136
137
138
139
140
141
142
# File 'lib/adlint/code.rb', line 136

def initialize(loc, linkage, scope_type, dcl_type, fun_id)
  @loc        = loc
  @linkage    = linkage
  @scope_type = scope_type
  @dcl_type   = dcl_type
  @fun_id     = fun_id
end