Class: AdLint::FunDef

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

Overview

DESCRIPTION

Function definition information.

Instance Method Summary collapse

Methods inherited from CodeStructure

#print_as_csv, #to_s

Constructor Details

#initialize(loc, linkage, scope_type, fun_id, lines) ⇒ FunDef

DESCRIPTION

Constructs the function definition information.

PARAMETER

loc

Location – Location where the definition appears.

linkage

String – Function linkage type string.

scope_type

String – Definition scope type string.

fun_id

FunctionId – Function identifier.

lines

Integer – Physical lines.



201
202
203
204
205
206
207
# File 'lib/adlint/code.rb', line 201

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