FreeBASIC  0.91.0
ast-misc.bas File Reference
#include "fb.bi"
#include "fbint.bi"
#include "list.bi"
#include "ir.bi"
#include "rtl.bi"
#include "ast.bi"
#include "hlp.bi"
Include dependency graph for ast-misc.bas:

Go to the source code of this file.

Functions

sub astReplaceSymbolOnCALL (byval_as_ASTNODE_ptr n, byval_as_FBSYMBOL_ptr old_sym, byval_as_FBSYMBOL_ptr new_sym)
 
sub astMiscInit ()
 
sub astMiscEnd ()
 
function_as_integer astIsTreeEqual (byval_as_ASTNODE_ptr l, byval_as_ASTNODE_ptr r)
 
function_as_integer astIsEqualParamInit (byval_as_ASTNODE_ptr l, byval_as_ASTNODE_ptr r)
 
function_as_ASTNODE_ptr astIsClassOnTree (byval_as_integer class_, byval_as_ASTNODE_ptr n)
 
function_as_integer astIsSymbolOnTree (byval_as_FBSYMBOL_ptr sym, byval_as_ASTNODE_ptr n)
 
sub astReplaceSymbolOnTree (byval_as_ASTNODE_ptr n, byval_as_FBSYMBOL_ptr old_sym, byval_as_FBSYMBOL_ptr new_sym)
 
sub astReplaceFwdref (byval_as_ASTNODE_ptr n, byval_as_FBSYMBOL_ptr oldsubtype, byval_as_integer newdtype, byval_as_FBSYMBOL_ptr newsubtype)
 
function_as_integer astIsConstant (byval_as_ASTNODE_ptr expr)
 
function_as_FBSYMBOL_ptr astGetStrLitSymbol (byval_as_ASTNODE_ptr n)
 
sub astCheckConst (byval_as_integer dtype, byval_as_ASTNODE_ptr n)
 
function_as_integer astPtrCheck (byval_as_integer pdtype, byval_as_FBSYMBOL_ptr psubtype, byval_as_ASTNODE_ptr expr, byval_as_integer strictcheck)
 
function_as_ASTNODE_ptr astUpdStrConcat (byval_as_ASTNODE_ptr n)
 
function_as_ASTNODE_ptr astBuildBranch (byval_as_ASTNODE_ptr expr, byval_as_FBSYMBOL_ptr label, byval_as_integer is_inverse, byval_as_integer is_iif)
 
private function_as_integer hHasDtor (byval_as_FBSYMBOL_ptr sym)
 
sub astDtorListDump ()
 
sub astDtorListAdd (byval_as_FBSYMBOL_ptr sym)
 
sub astDtorListAddRef (byval_as_FBSYMBOL_ptr sym)
 
sub astDtorListRemoveRef (byval_as_FBSYMBOL_ptr sym)
 
function_as_ASTNODE_ptr astDtorListFlush (byval_as_integer cookie)
 
sub astDtorListDel (byval_as_FBSYMBOL_ptr sym)
 
sub astDtorListScopeBegin (byval_as_integer cookie)
 
function_as_integer astDtorListScopeEnd ()
 
sub astDtorListUnscope (byval_as_integer cookie)
 
sub astSetType (byval_as_ASTNODE_ptr n, byval_as_integer dtype, byval_as_FBSYMBOL_ptr subtype)
 
function_as_longint astSizeOf (byval_as_ASTNODE_ptr n)
 
private function_as_integer hSymbIsOnLocalStack (byval_as_FBSYMBOL_ptr sym)
 
function_as_integer astIsAccessToLocal (byval_as_ASTNODE_ptr expr)
 

Function Documentation

function_as_ASTNODE_ptr astBuildBranch ( byval_as_ASTNODE_ptr  expr,
byval_as_FBSYMBOL_ptr  label,
byval_as_integer  is_inverse,
byval_as_integer  is_iif 
)

Definition at line 761 of file ast-misc.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub astCheckConst ( byval_as_integer  dtype,
byval_as_ASTNODE_ptr  n 
)

Definition at line 548 of file ast-misc.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub astDtorListAdd ( byval_as_FBSYMBOL_ptr  sym)

Definition at line 1034 of file ast-misc.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub astDtorListAddRef ( byval_as_FBSYMBOL_ptr  sym)

Definition at line 1057 of file ast-misc.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub astDtorListDel ( byval_as_FBSYMBOL_ptr  sym)

Definition at line 1134 of file ast-misc.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub astDtorListDump ( )

Definition at line 1022 of file ast-misc.bas.

Here is the call graph for this function:

function_as_ASTNODE_ptr astDtorListFlush ( byval_as_integer  cookie)

Definition at line 1103 of file ast-misc.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub astDtorListRemoveRef ( byval_as_FBSYMBOL_ptr  sym)

Definition at line 1077 of file ast-misc.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub astDtorListScopeBegin ( byval_as_integer  cookie)

Definition at line 1155 of file ast-misc.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_integer astDtorListScopeEnd ( )

Definition at line 1176 of file ast-misc.bas.

Here is the caller graph for this function:

sub astDtorListUnscope ( byval_as_integer  cookie)

Definition at line 1185 of file ast-misc.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_FBSYMBOL_ptr astGetStrLitSymbol ( byval_as_ASTNODE_ptr  n)

Definition at line 524 of file ast-misc.bas.

Here is the caller graph for this function:

function_as_integer astIsAccessToLocal ( byval_as_ASTNODE_ptr  expr)

Definition at line 1270 of file ast-misc.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astIsClassOnTree ( byval_as_integer  class_,
byval_as_ASTNODE_ptr  n 
)

Definition at line 349 of file ast-misc.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_integer astIsConstant ( byval_as_ASTNODE_ptr  expr)

Definition at line 507 of file ast-misc.bas.

Here is the caller graph for this function:

function_as_integer astIsEqualParamInit ( byval_as_ASTNODE_ptr  l,
byval_as_ASTNODE_ptr  r 
)

Definition at line 199 of file ast-misc.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_integer astIsSymbolOnTree ( byval_as_FBSYMBOL_ptr  sym,
byval_as_ASTNODE_ptr  n 
)

Definition at line 382 of file ast-misc.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_integer astIsTreeEqual ( byval_as_ASTNODE_ptr  l,
byval_as_ASTNODE_ptr  r 
)

Definition at line 45 of file ast-misc.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub astMiscEnd ( )

Definition at line 31 of file ast-misc.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub astMiscInit ( )

Definition at line 20 of file ast-misc.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_integer astPtrCheck ( byval_as_integer  pdtype,
byval_as_FBSYMBOL_ptr  psubtype,
byval_as_ASTNODE_ptr  expr,
byval_as_integer  strictcheck 
)

Definition at line 639 of file ast-misc.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub astReplaceFwdref ( byval_as_ASTNODE_ptr  n,
byval_as_FBSYMBOL_ptr  oldsubtype,
byval_as_integer  newdtype,
byval_as_FBSYMBOL_ptr  newsubtype 
)

Definition at line 481 of file ast-misc.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub astReplaceSymbolOnCALL ( byval_as_ASTNODE_ptr  n,
byval_as_FBSYMBOL_ptr  old_sym,
byval_as_FBSYMBOL_ptr  new_sym 
)

Definition at line 339 of file ast-node-call.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub astReplaceSymbolOnTree ( byval_as_ASTNODE_ptr  n,
byval_as_FBSYMBOL_ptr  old_sym,
byval_as_FBSYMBOL_ptr  new_sym 
)

Definition at line 434 of file ast-misc.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub astSetType ( byval_as_ASTNODE_ptr  n,
byval_as_integer  dtype,
byval_as_FBSYMBOL_ptr  subtype 
)

Definition at line 1204 of file ast-misc.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_longint astSizeOf ( byval_as_ASTNODE_ptr  n)

Definition at line 1253 of file ast-misc.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astUpdStrConcat ( byval_as_ASTNODE_ptr  n)

Definition at line 713 of file ast-misc.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_integer hHasDtor ( byval_as_FBSYMBOL_ptr  sym)

Definition at line 1002 of file ast-misc.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_integer hSymbIsOnLocalStack ( byval_as_FBSYMBOL_ptr  sym)

Definition at line 1266 of file ast-misc.bas.

Here is the caller graph for this function: