Home | History | Annotate | Download | only in cindex

Lines Matching defs:Cursor

3 from clang.cindex import Cursor
35 """Obtain a cursor from a source object.
37 This provides a convenient search mechanism to find a cursor with specific
39 TranslationUnit or Cursor instance.
41 If the cursor is not found, None is returned.
44 if isinstance(source, Cursor):
48 children = source.cursor.get_children()
50 for cursor in children:
51 if cursor.spelling == spelling:
52 return cursor
55 result = get_cursor(cursor, spelling)