Lines Matching defs:self
105 def __init__(self, tu=None, group=None, int_data=None, ptr_data=None, argument
119 def id(self): argument
127 def id(self, new_id): argument
132 def cursor(self): argument
138 def cursor(self, new_cursor): argument
141 def __repr__(self): argument
149 def __str__(self): argument
162 def SourceRange__contains__(self, other): argument
213 def __init__(self): argument
220 def _getTokensWithCursors(self): argument
268 def parseString(self, lines): argument
276 def parseFile(self, file_): argument
282 def nextToken(self): argument
295 def __init__(self, line): argument
303 def __init__(self, file_): argument
313 def get_tokens(self, token_string, line_col=False): argument
327 def test_hash(self): argument
332 def test_parens(self): argument
337 def test_comment(self): argument
340 def test_line_cross(self): argument
343 def test_line_cross_line_col(self): argument
347 def test_comment_line_col(self): argument
351 def test_escapes(self): argument
390 def __init__(self, tokens): argument
405 def throw(self, exception, msg): argument
413 def expectId(self, id): argument
422 def is_decimal(self): argument
433 def is_octal(self): argument
446 def is_hexadecimal(self): argument
459 def is_integer(self): argument
477 def is_number(self): argument
493 def is_defined(self): argument
522 def is_call_or_ident(self): argument
568 def parseExpression(self, minPrecedence): argument
582 def parsePrimary(self): argument
611 def isBinary(self, token): argument
614 def isUnary(self, token): argument
617 def precedence(self, token): argument
620 def token(self): argument
625 def nextToken(self): argument
631 def dump_node(self, e): argument
664 def __repr__(self): argument
667 def source_node(self, e): argument
705 def __str__(self): argument
715 def toInt(self): argument
718 def optimize_node(self, e, macros=None): argument
800 def optimize(self, macros=None): argument
808 def get_expr(self, expr): argument
811 def test_cpp_expr(self): argument
838 def get_expr_optimize(self, expr, macros=None): argument
845 def test_cpp_expr_optimize(self): argument
917 def get_expr_string(self, expr): argument
920 def test_cpp_expr_string(self): argument
959 def __init__(self, tokens, directive=None, lineno=0, identifier=None): argument
991 def isDirective(self): argument
995 def isConditional(self): argument
1000 def isDefine(self): argument
1006 def isIf(self): argument
1010 def isEndif(self): argument
1014 def isInclude(self): argument
1081 def write(self, out, indent): argument
1100 def __repr__(self): argument
1116 def __str__(self): argument
1164 def __init__(self, blocks): argument
1167 def __len__(self): argument
1170 def __getitem__(self, n): argument
1173 def __repr__(self): argument
1176 def __str__(self): argument
1180 def dump(self): argument
1188 def optimizeIf01(self): argument
1192 def optimizeMacros(self, macros): argument
1198 def removeStructs(self, structs): argument
1244 def optimizeAll(self, macros): argument
1249 def findIncludes(self): argument
1258 def write(self, out): argument
1263 def removeVarsAndFuncs(self, keep): argument
1405 def replaceTokens(self, replacements): argument
1478 def __init__(self, tokzer=None): argument
1487 def parsed(self): argument
1495 def getBlocks(self, tokzer=None): argument
1633 def parse(self, tokzer): argument
1636 def parseFile(self, path): argument
1643 def get_blocks(self, lines): argument
1647 def test_hash(self): argument
1650 def test_empty_line(self): argument
1653 def test_hash_with_space(self): argument
1659 def test_with_comment(self): argument
1798 def parse(self, text, macros=None): argument
1805 def test_if1(self): argument
1816 def test_if0(self): argument
1826 def test_if1_else(self): argument
1839 def test_if0_else(self): argument
1852 def test_if_elif1(self): argument
1869 def test_if_elif1_macro(self): argument
1887 def test_if_elif1_else(self): argument
1906 def test_if_elif1_else_macro(self): argument
1926 def test_if_elif1_else_macro(self): argument
1945 def test_macro_set_to_undefined_single(self): argument
1955 def test_macro_set_to_undefined_if(self): argument
1969 def test_endif_comment_removed(self): argument
1982 def test_multilevel_if0(self): argument
1994 def parse(self, text, structs): argument
2001 def test_remove_struct_from_start(self): argument
2020 def test_remove_struct_from_end(self): argument
2039 def test_remove_minimal_struct(self): argument
2047 def test_remove_struct_with_struct_fields(self): argument
2067 def test_remove_consecutive_structs(self): argument
2099 def test_remove_multiple_structs(self): argument
2136 def parse(self, text, keep=None): argument
2150 def test_function_removed(self): argument
2159 def test_function_removed_with_struct(self): argument
2168 def test_function_kept(self): argument
2180 def test_var_removed(self): argument
2185 def test_var_kept(self): argument
2190 def test_keep_function_typedef(self): argument
2195 def test_struct_keep_attribute(self): argument
2210 def test_function_keep_attribute_structs(self): argument
2221 def test_struct_after_struct(self): argument
2243 def test_other_not_removed(self): argument
2289 def test_semicolon_after_function(self): argument
2306 def test_define_in_middle_keep(self): argument
2325 def test_define_in_middle_remove(self): argument
2342 def test_define_in_middle_force_keep(self): argument
2365 def test_define_before_remove(self): argument
2386 def test_extern_C(self): argument
2411 def test_macro_definition_removed(self): argument
2429 def test_verify_timeval_itemerval(self): argument
2450 def test_token_replacement(self): argument