code stringlengths 3 6.57k |
|---|
elif (tok.type == 'PIPE') |
self.nameStack.append(tok.value) |
elif (tok.type == 'PERCENT') |
self.nameStack.append(tok.value) |
elif (tok.type == 'CARET') |
self.nameStack.append(tok.value) |
elif (tok.type == 'EXCLAMATION') |
self.nameStack.append(tok.value) |
elif (tok.type == 'SQUOTE') |
elif (tok.type == 'NUMBER' or tok.type == 'FLOAT_NUMBER') |
self.nameStack.append(tok.value) |
elif (tok.type == 'MINUS') |
self.nameStack.append(tok.value) |
elif (tok.type == 'PLUS') |
self.nameStack.append(tok.value) |
elif (tok.type == 'STRING_LITERAL') |
self.nameStack.append(tok.value) |
elif (tok.type == 'NAME' or tok.type == 'AMPERSTAND' or tok.type == 'ASTERISK' or tok.type == 'CHAR_LITERAL') |
debug_print("Ignore symbol %s"%tok.value) |
elif (tok.value == 'class') |
self.nameStack.append(tok.value) |
len(self.nameStack) |
in ("class", "struct", "union") |
self.nameStack.append(tok.value) |
len(self.nameSpaces) |
len(self.nameSpaces) |
len(self.curClass.split("::") |
self.accessSpecifierScratch.append(tok.value) |
debug_print("curAccessSpecifier updated to %s"%self.curAccessSpecifier) |
self.nameStack.append(tok.value) |
elif (tok.type == 'COLON') |
len(self.nameStack) |
join(self.accessSpecifierScratch + self.nameStack) |
debug_print("curAccessSpecifier updated to %s"%self.curAccessSpecifier) |
self.nameStack.append(tok.value) |
elif (tok.type == 'SEMI_COLON') |
debug_print("Creating anonymous union") |
debug_print("pre eval anon stack") |
self.evaluate_stack( tok.type ) |
debug_print("post eval anon stack") |
if (self.braceDepth < 10) |
self.evaluate_stack( tok.type ) |
if (debug) |
join(self.nameStack) |
self.finalize() |
evaluate_stack(self, token=None) |
filter_out_attribute_keyword(self.nameStack) |
filter_out_attribute_keyword(self.stack) |
debug_print( "Evaluating stack %s\n BraceDepth: %s (called from %d) |
inspect.currentframe() |
operator () |
operator() |
join(self.nameStack) |
self.nameStack.index("operator") |
self.nameStack.pop(operator_index + 2) |
self.nameStack.pop(operator_index + 1) |
operator() |
if (len(self.curClass) |
debug_print( "%s (%s) |
debug_print( "<anonymous> (%s) |
self.nameStack.index("[") |
self.nameStack.index("(") |
self.nameStack.index(") |
debug_print("Filtered namestack to=%s"%self.nameStack) |
self.evaluate_typedef() |
and
(('struct' not in self.nameStack and 'union' not in self.nameStack) |
is_enum_namestack(self.nameStack) |
trace_print('STACK', self.stack) |
self.evaluate_typedef() |
elif (len(self.nameStack) |
debug_print( "trace" ) |
debug_print( "(Empty Stack) |
elif (self.nameStack[0] == "namespace") |
len(self.nameStack) |
len(self.nameStack) |
is_enum_namestack(self.nameStack) |
debug_print( "trace" ) |
self.evaluate_enum_stack() |
and (self.braceDepth + 1) |
trace_print( 'INSIDE METHOD DEF' ) |
is_method_namestack(self.stack) |
debug_print( "trace" ) |
self.evaluate_method_stack() |
self.evaluate_method_stack() |
elif (len(self.nameStack) |
len(self.nameStackHistory) |
debug_print("found the naming of a union") |
is_property_namestack(self.nameStack) |
debug_print( "trace" ) |
in ('class', 'struct') |
len(self.stack) |
self.evalute_forward_decl() |
len(self.nameStack) |
and (self.nameStack[0]=='friend' and self.nameStack[1]=='class') |
self.evaluate_property_stack() |
in ("class", "struct", "union") |
in ('struct', 'union') |
debug_print( "trace" ) |
self.evaluate_class_stack() |
debug_print( "trace" ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.