dstep.translator.Context

Members

Functions

collectGlobalNames
void collectGlobalNames(TranslationUnit translUnit, ref Cursor[string] types, ref 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.

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