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

Go to the source code of this file.

Functions

function_as_ASTNODE_ptr astBuildVarAssign (byval_as_FBSYMBOL_ptr lhs, byval_as_integer rhs)
 
function_as_ASTNODE_ptr astBuildVarAssign (byval_as_FBSYMBOL_ptr lhs, byval_as_ASTNODE_ptr rhs)
 
function_as_ASTNODE_ptr astBuildFakeWstringAccess (byval_as_FBSYMBOL_ptr sym)
 
function_as_ASTNODE_ptr astBuildFakeWstringAssign (byval_as_FBSYMBOL_ptr sym, byval_as_ASTNODE_ptr expr, byval_as_integer options)
 
function_as_ASTNODE_ptr astBuildVarInc (byval_as_FBSYMBOL_ptr lhs, byval_as_integer rhs)
 
function_as_ASTNODE_ptr astBuildVarDeref (byval_as_FBSYMBOL_ptr sym)
 
function_as_ASTNODE_ptr astBuildVarAddrof (byval_as_FBSYMBOL_ptr sym)
 
function_as_ASTNODE_ptr astBuildVarDtorCall (byval_as_FBSYMBOL_ptr s, byval_as_integer check_access)
 
function_as_ASTNODE_ptr astBuildVarField (byval_as_FBSYMBOL_ptr sym, byval_as_FBSYMBOL_ptr fld, byval_as_longint ofs)
 
function_as_ASTNODE_ptr astBuildTempVarClear (byval_as_FBSYMBOL_ptr sym)
 
function_as_ASTNODE_ptr astBuildForBegin (byval_as_ASTNODE_ptr tree, byval_as_FBSYMBOL_ptr cnt, byval_as_FBSYMBOL_ptr label, byval_as_integer inivalue, byval_as_integer flush_label)
 
function_as_ASTNODE_ptr astBuildForEnd (byval_as_ASTNODE_ptr tree, byval_as_FBSYMBOL_ptr cnt, byval_as_FBSYMBOL_ptr label, byval_as_ASTNODE_ptr endvalue)
 
function_as_ASTNODE_ptr astBuildVtableLookup (byval_as_FBSYMBOL_ptr proc, byval_as_ASTNODE_ptr thisexpr)
 
function_as_ASTNODE_ptr astBuildCall (byval_as_FBSYMBOL_ptr proc, byval_as_ASTNODE_ptr arg1, byval_as_ASTNODE_ptr arg2, byval_as_ASTNODE_ptr arg3)
 
function_as_ASTNODE_ptr astBuildCtorCall (byval_as_FBSYMBOL_ptr sym, byval_as_ASTNODE_ptr thisexpr)
 
function_as_ASTNODE_ptr astBuildDtorCall (byval_as_FBSYMBOL_ptr sym, byval_as_ASTNODE_ptr thisexpr, byval_as_integer ignore_virtual)
 
private function_as_ASTNODE_ptr astFakeInstPtr (byval_as_FBSYMBOL_ptr subtype)
 
function_as_ASTNODE_ptr astPatchCtorCall (byval_as_ASTNODE_ptr procexpr, byval_as_ASTNODE_ptr thisexpr)
 
function_as_ASTNODE_ptr astCALLCTORToCALL (byval_as_ASTNODE_ptr n)
 
function_as_ASTNODE_ptr astBuildImplicitCtorCall (byval_as_FBSYMBOL_ptr subtype, byval_as_ASTNODE_ptr expr, byval_as_FB_PARAMMODE arg_mode, byref_as_integer is_ctorcall)
 
function_as_ASTNODE_ptr astBuildImplicitCtorCallEx (byval_as_FBSYMBOL_ptr sym, byval_as_ASTNODE_ptr expr, byval_as_FB_PARAMMODE arg_mode, byref_as_integer is_ctorcall)
 
function_as_ASTNODE_ptr astBuildProcAddrof (byval_as_FBSYMBOL_ptr proc)
 
function_as_ASTNODE_ptr astBuildProcResultVar (byval_as_FBSYMBOL_ptr proc, byval_as_FBSYMBOL_ptr res)
 
function_as_ASTNODE_ptr astBuildInstPtr (byval_as_FBSYMBOL_ptr sym, byval_as_FBSYMBOL_ptr fld, byval_as_ASTNODE_ptr idxexpr)
 
function_as_ASTNODE_ptr astBuildInstPtrAtOffset (byval_as_FBSYMBOL_ptr sym, byval_as_FBSYMBOL_ptr fld, byval_as_longint ofs)
 
function_as_ASTNODE_ptr astBuildTypeIniCtorList (byval_as_FBSYMBOL_ptr sym)
 
function_as_ASTNODE_ptr astBuildMultiDeref (byval_as_integer cnt, byval_as_ASTNODE_ptr expr, byval_as_integer dtype, byval_as_FBSYMBOL_ptr subtype)
 
function_as_ASTNODE_ptr astBuildArrayDescIniTree (byval_as_FBSYMBOL_ptr desc, byval_as_FBSYMBOL_ptr array, byval_as_ASTNODE_ptr array_expr)
 
private function_as_ASTNODE_ptr hConstBound (byval_as_ASTNODE_ptr arrayexpr, byval_as_ASTNODE_ptr dimexpr, byval_as_integer is_lbound)
 
function_as_ASTNODE_ptr astBuildArrayBound (byval_as_ASTNODE_ptr arrayexpr, byval_as_ASTNODE_ptr dimexpr, byval_as_integer tk)
 
function_as_ASTNODE_ptr astBuildStrPtr (byval_as_ASTNODE_ptr lhs)
 

Function Documentation

function_as_ASTNODE_ptr astBuildArrayBound ( byval_as_ASTNODE_ptr  arrayexpr,
byval_as_ASTNODE_ptr  dimexpr,
byval_as_integer  tk 
)

Definition at line 974 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildArrayDescIniTree ( byval_as_FBSYMBOL_ptr  desc,
byval_as_FBSYMBOL_ptr  array,
byval_as_ASTNODE_ptr  array_expr 
)

Definition at line 763 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildCall ( byval_as_FBSYMBOL_ptr  proc,
byval_as_ASTNODE_ptr  arg1,
byval_as_ASTNODE_ptr  arg2,
byval_as_ASTNODE_ptr  arg3 
)

Definition at line 316 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildCtorCall ( byval_as_FBSYMBOL_ptr  sym,
byval_as_ASTNODE_ptr  thisexpr 
)

Definition at line 365 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildDtorCall ( byval_as_FBSYMBOL_ptr  sym,
byval_as_ASTNODE_ptr  thisexpr,
byval_as_integer  ignore_virtual 
)

Definition at line 395 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildFakeWstringAccess ( byval_as_FBSYMBOL_ptr  sym)

Definition at line 37 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildFakeWstringAssign ( byval_as_FBSYMBOL_ptr  sym,
byval_as_ASTNODE_ptr  expr,
byval_as_integer  options 
)

Definition at line 43 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildForBegin ( byval_as_ASTNODE_ptr  tree,
byval_as_FBSYMBOL_ptr  cnt,
byval_as_FBSYMBOL_ptr  label,
byval_as_integer  inivalue,
byval_as_integer  flush_label 
)

Definition at line 211 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildForEnd ( byval_as_ASTNODE_ptr  tree,
byval_as_FBSYMBOL_ptr  cnt,
byval_as_FBSYMBOL_ptr  label,
byval_as_ASTNODE_ptr  endvalue 
)

Definition at line 229 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildImplicitCtorCall ( byval_as_FBSYMBOL_ptr  subtype,
byval_as_ASTNODE_ptr  expr,
byval_as_FB_PARAMMODE  arg_mode,
byref_as_integer  is_ctorcall 
)

Definition at line 476 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildImplicitCtorCallEx ( byval_as_FBSYMBOL_ptr  sym,
byval_as_ASTNODE_ptr  expr,
byval_as_FB_PARAMMODE  arg_mode,
byref_as_integer  is_ctorcall 
)

Definition at line 527 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildInstPtr ( byval_as_FBSYMBOL_ptr  sym,
byval_as_FBSYMBOL_ptr  fld,
byval_as_ASTNODE_ptr  idxexpr 
)

Definition at line 583 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildInstPtrAtOffset ( byval_as_FBSYMBOL_ptr  sym,
byval_as_FBSYMBOL_ptr  fld,
byval_as_longint  ofs 
)

Definition at line 631 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildMultiDeref ( byval_as_integer  cnt,
byval_as_ASTNODE_ptr  expr,
byval_as_integer  dtype,
byval_as_FBSYMBOL_ptr  subtype 
)

Definition at line 690 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildProcAddrof ( byval_as_FBSYMBOL_ptr  proc)

Definition at line 556 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildProcResultVar ( byval_as_FBSYMBOL_ptr  proc,
byval_as_FBSYMBOL_ptr  res 
)

Definition at line 563 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildStrPtr ( byval_as_ASTNODE_ptr  lhs)

Definition at line 1006 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildTempVarClear ( byval_as_FBSYMBOL_ptr  sym)

Definition at line 189 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildTypeIniCtorList ( byval_as_FBSYMBOL_ptr  sym)

Definition at line 672 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildVarAddrof ( byval_as_FBSYMBOL_ptr  sym)

Definition at line 105 of file ast-helper.bas.

Here is the call graph for this function:

function_as_ASTNODE_ptr astBuildVarAssign ( byval_as_FBSYMBOL_ptr  lhs,
byval_as_integer  rhs 
)

Definition at line 18 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildVarAssign ( byval_as_FBSYMBOL_ptr  lhs,
byval_as_ASTNODE_ptr  rhs 
)

Definition at line 28 of file ast-helper.bas.

Here is the call graph for this function:

function_as_ASTNODE_ptr astBuildVarDeref ( byval_as_FBSYMBOL_ptr  sym)

Definition at line 101 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildVarDtorCall ( byval_as_FBSYMBOL_ptr  s,
byval_as_integer  check_access 
)

Definition at line 111 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildVarField ( byval_as_FBSYMBOL_ptr  sym,
byval_as_FBSYMBOL_ptr  fld,
byval_as_longint  ofs 
)

Definition at line 152 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildVarInc ( byval_as_FBSYMBOL_ptr  lhs,
byval_as_integer  rhs 
)

Definition at line 76 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astBuildVtableLookup ( byval_as_FBSYMBOL_ptr  proc,
byval_as_ASTNODE_ptr  thisexpr 
)

Definition at line 255 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astCALLCTORToCALL ( byval_as_ASTNODE_ptr  n)

Definition at line 440 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_ASTNODE_ptr astFakeInstPtr ( byval_as_FBSYMBOL_ptr  subtype)

Definition at line 417 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr astPatchCtorCall ( byval_as_ASTNODE_ptr  procexpr,
byval_as_ASTNODE_ptr  thisexpr 
)

Definition at line 423 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_ASTNODE_ptr hConstBound ( byval_as_ASTNODE_ptr  arrayexpr,
byval_as_ASTNODE_ptr  dimexpr,
byval_as_integer  is_lbound 
)

Definition at line 894 of file ast-helper.bas.

Here is the call graph for this function:

Here is the caller graph for this function: