Overview › callgraph.bas

Module callgraph.bas

fbdoc/inc/callgraph.bas:1
Module callgraph.bas. Contains 17 function(s).auto

CallTargetAt

function CallTargetAt(ByVal i As Integer, ByRef nameOut As String) returns(Integer)
Herkent naam( en a.b.naam( en geeft de index van '(' terug (0 = geen).
ParameterTypeDirectionDescription
ByVali As Integerby valauto
ByRefnameOut As Stringby refauto
Returns Integer — value of type Integer
no callers within the scanned code
callgraph.bas:6

QualNameStr

function QualNameStr(ByVal i As Integer) returns(String)
Geeft a.b.c terug vanaf tokenpositie i.
ParameterTypeDirectionDescription
ByVali As Integerby valauto
Returns String — value of type String
Called by callgraph.bas.ScanBindings
callgraph.bas:28

AddCallauto

function AddCall(ByVal fromM As Integer, ByRef nm As String, ByVal ln As Integer, ByVal kindC As Integer)
Adds call.
ParameterTypeDirectionDescription
ByValfromM As Integerby valauto
ByRefnm As Stringby refauto
ByValln As Integerby valauto
ByValkindC As Integerby valauto
Calls IsBuiltinMethod, LC (5x)
Called by callgraph.bas.ScanBindings
callgraph.bas:48

FindPartByNameauto

function FindPartByName(ByRef nm As String) returns(Integer)
Searches for part by name. Returns Integer.
ParameterTypeDirectionDescription
ByRefnm As Stringby refauto
Returns Integer — value of type Integer
Calls LC (2x)
Called by callgraph.bas.ResolveCalls
callgraph.bas:112

FindFuncInPartauto

function FindFuncInPart(ByVal pidx As Integer, ByRef nm As String) returns(Integer)
Searches for func in part. Returns Integer.
ParameterTypeDirectionDescription
ByValpidx As Integerby valauto
ByRefnm As Stringby refauto
Returns Integer — value of type Integer
Calls LC (2x)
Called by callgraph.bas.ResolveCalls, callgraph.bas.ResolveBindings
callgraph.bas:120

ResolveCallsauto

function ResolveCalls()
Function resolve calls.
Calls IsSysLibName, LC (5x), callgraph.bas.FindPartByName, callgraph.bas.FindFuncInPart (2x)
no callers within the scanned code
callgraph.bas:133

ScanBindings

function ScanBindings(ByVal a As Integer, ByVal b As Integer, ByVal ownerPart As Integer, ByVal ownerFunc As Integer)
Zoekt in een tokenbereik naar koppelingen als onClick = doeIets of onConstructionFunction = start.
Zulke functies worden nergens expliciet aangeroepen maar zijn wel degelijk in gebruik; zonder deze scan komen ze onterecht in het overzicht van mogelijk dode code terecht.
ParameterTypeDirectionDescription
ByVala As Integerby valauto
ByValb As Integerby valauto
ByValownerPart As Integerby valauto
ByValownerFunc As Integerby valauto
Calls callgraph.bas.QualNameStr, callgraph.bas.AddCall
no callers within the scanned code
callgraph.bas:221

ResolveBindingsauto

function ResolveBindings()
Function resolve bindings.
Calls callgraph.bas.FindFuncInPart
no callers within the scanned code
callgraph.bas:247

DeadKind

function DeadKind(ByVal midx As Integer) returns(Integer)
Waarom heeft deze functie geen aanroeper? 0 = wel aangeroepen 1 = mogelijk ongebruikt 2 = ingang van een service, dus van buiten aangeroepen 3 = gekoppeld via een property (event handler, onConstructionFunction)
ParameterTypeDirectionDescription
ByValmidx As Integerby valauto
Returns Integer — value of type Integer
Calls callgraph.bas.CallerCount, LC
no callers within the scanned code
callgraph.bas:260

EdgeKindLabel

function EdgeKindLabel(ByVal kindC As Integer) returns(String)
Korte aanduiding van het soort relatie.
ParameterTypeDirectionDescription
ByValkindC As Integerby valauto
Returns String — value of type String
no callers within the scanned code
callgraph.bas:281

CalleeCountauto

function CalleeCount(ByVal midx As Integer) returns(Integer)
Function callee count. Returns Integer.
ParameterTypeDirectionDescription
ByValmidx As Integerby valauto
Returns Integer — value of type Integer
no callers within the scanned code
callgraph.bas:288

CallerCountauto

function CallerCount(ByVal midx As Integer) returns(Integer)
Function caller count. Returns Integer.
ParameterTypeDirectionDescription
ByValmidx As Integerby valauto
Returns Integer — value of type Integer
Called by callgraph.bas.DeadKind
callgraph.bas:300

MemberFullNameauto

function MemberFullName(ByVal midx As Integer) returns(String)
Function member full name. Returns String.
ParameterTypeDirectionDescription
ByValmidx As Integerby valauto
Returns String — value of type String
no callers within the scanned code
callgraph.bas:309

CollectExterns

function CollectExterns()
Verzamelt de niet-opgeloste aanroepen per qualifier: dat zijn precies de bibliotheken uit andere projecten waarvan deze code afhankelijk is.
Calls IsSysLibName, LC (3x)
no callers within the scanned code
callgraph.bas:319

CollectAmbigauto

function CollectAmbig()
Function collect ambig.
Calls LC (2x)
no callers within the scanned code
callgraph.bas:354

ComputeRefDist

function ComputeRefDist()
Hoe ver staat een referentiefunctie van de gedocumenteerde code af?
--follow trekt hele projecten naar binnen. Voor de graaf wil je alleen de grens zien: welke functies roept jouw code aan, en eventueel een paar stappen daarachter. Alles wat verder weg ligt valt buiten beeld, anders krijg je een diagram met tienduizenden knopen.
no callers within the scanned code
callgraph.bas:384

GraphVisible

function GraphVisible(ByVal midx As Integer) returns(Integer)
Hoort deze functie in de graaf?
ParameterTypeDirectionDescription
ByValmidx As Integerby valauto
Returns Integer — value of type Integer
no callers within the scanned code
callgraph.bas:414