Lines Matching defs:self
108 def __init__(self, tu=None, group=None, int_data=None, ptr_data=None, argument
122 def id(self): argument
130 def id(self, new_id): argument
135 def cursor(self): argument
141 def cursor(self, new_cursor): argument
144 def __repr__(self): argument
152 def __str__(self): argument
165 def SourceRange__contains__(self, other): argument
216 def __init__(self): argument
223 def _getTokensWithCursors(self): argument
271 def parseString(self, lines): argument
279 def parseFile(self, file_): argument
285 def nextToken(self): argument
298 def __init__(self, line): argument
306 def __init__(self, file_): argument
316 def get_tokens(self, token_string, line_col=False): argument
330 def test_hash(self): argument
335 def test_parens(self): argument
340 def test_comment(self): argument
343 def test_line_cross(self): argument
346 def test_line_cross_line_col(self): argument
350 def test_comment_line_col(self): argument
354 def test_escapes(self): argument
393 def __init__(self, tokens): argument
408 def throw(self, exception, msg): argument
416 def expectId(self, id): argument
425 def is_decimal(self): argument
436 def is_octal(self): argument
449 def is_hexadecimal(self): argument
462 def is_integer(self): argument
480 def is_number(self): argument
496 def is_defined(self): argument
525 def is_call_or_ident(self): argument
571 def parseExpression(self, minPrecedence): argument
585 def parsePrimary(self): argument
614 def isBinary(self, token): argument
617 def isUnary(self, token): argument
620 def precedence(self, token): argument
623 def token(self): argument
628 def nextToken(self): argument
634 def dump_node(self, e): argument
667 def __repr__(self): argument
670 def source_node(self, e): argument
708 def __str__(self): argument
718 def toInt(self): argument
721 def optimize_node(self, e, macros=None): argument
803 def optimize(self, macros=None): argument
811 def get_expr(self, expr): argument
814 def test_cpp_expr(self): argument
841 def get_expr_optimize(self, expr, macros=None): argument
848 def test_cpp_expr_optimize(self): argument
920 def get_expr_string(self, expr): argument
923 def test_cpp_expr_string(self): argument
962 def __init__(self, tokens, directive=None, lineno=0, identifier=None): argument
994 def isDirective(self): argument
998 def isConditional(self): argument
1003 def isDefine(self): argument
1009 def isIf(self): argument
1013 def isEndif(self): argument
1017 def isInclude(self): argument
1084 def write(self, out, indent): argument
1103 def __repr__(self): argument
1119 def __str__(self): argument
1167 def __init__(self, blocks): argument
1170 def __len__(self): argument
1173 def __getitem__(self, n): argument
1176 def __repr__(self): argument
1179 def __str__(self): argument
1183 def dump(self): argument
1191 def optimizeIf01(self): argument
1195 def optimizeMacros(self, macros): argument
1201 def optimizeAll(self, macros): argument
1206 def findIncludes(self): argument
1215 def write(self, out): argument
1220 def removeVarsAndFuncs(self, keep): argument
1362 def replaceTokens(self, replacements): argument
1435 def __init__(self, tokzer=None): argument
1444 def parsed(self): argument
1452 def getBlocks(self, tokzer=None): argument
1590 def parse(self, tokzer): argument
1593 def parseFile(self, path): argument
1600 def get_blocks(self, lines): argument
1604 def test_hash(self): argument
1607 def test_empty_line(self): argument
1610 def test_hash_with_space(self): argument
1616 def test_with_comment(self): argument
1755 def parse(self, text, macros=None): argument
1763 def test_if1(self): argument
1774 def test_if0(self): argument
1784 def test_if1_else(self): argument
1797 def test_if0_else(self): argument
1810 def test_if_elif1(self): argument
1827 def test_if_elif1_macro(self): argument
1845 def test_if_elif1_else(self): argument
1864 def test_if_elif1_else_macro(self): argument
1884 def test_if_elif1_else_macro(self): argument
1903 def test_macro_set_to_undefined_single(self): argument
1913 def test_macro_set_to_undefined_if(self): argument
1927 def test_endif_comment_removed(self): argument
1940 def test_multilevel_if0(self): argument
1954 def parse(self, text, keep=None): argument
1965 def test_function_removed(self): argument
1974 def test_function_removed_with_struct(self): argument
1983 def test_function_kept(self): argument
1995 def test_var_removed(self): argument
2000 def test_var_kept(self): argument
2005 def test_keep_function_typedef(self): argument
2010 def test_struct_keep_attribute(self): argument
2025 def test_function_keep_attribute_structs(self): argument
2036 def test_struct_after_struct(self): argument
2058 def test_other_not_removed(self): argument
2104 def test_semicolon_after_function(self): argument
2121 def test_define_in_middle_keep(self): argument
2140 def test_define_in_middle_remove(self): argument
2157 def test_define_in_middle_force_keep(self): argument
2180 def test_define_before_remove(self): argument
2201 def test_extern_C(self): argument
2226 def test_macro_definition_removed(self): argument