dstep.translator.Context

Members

Classes

Context
class Context
Undocumented in source.

Functions

collectGlobalNames
void collectGlobalNames(TranslationUnit translUnit, Cursor[string] types, Cursor[string] consts)

The collectGlobalTypes function scans the whole AST of the translation unit and produces a set of the type names in global scope.

cursorScope
string[] cursorScope(Context context, Cursor cursor)
Undocumented in source. Be warned that the author may not have intended to support it.
cursorScopeString
string cursorScopeString(Context context, Cursor cursor)
Undocumented in source. Be warned that the author may not have intended to support it.
isGlobal
bool isGlobal(Cursor cursor)

Returns true, if cursor is in the global scope.

isGlobalLexically
bool isGlobalLexically(Cursor cursor)

Returns true, if cursor is in the global scope.

shouldBeAnonymous
bool shouldBeAnonymous(Context context, Cursor cursor)

Returns true, if cursor can be translated as anonymous.

variablesInParentScope
bool variablesInParentScope(Cursor cursor)

Returns true, if there is a variable, of type represented by cursor, among children of its parent.

Meta

Authors

Wojciech Szęszoł

Version

Initial created: Mar 21, 2016