mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
parent
e6ad51c682
commit
93f2a27e35
1 changed files with 11 additions and 0 deletions
|
@ -93,6 +93,17 @@ def object_completer(ast_node, match_variables):
|
||||||
yield Completion(c.name, CompletionItemKind.Class, docs=c.doc)
|
yield Completion(c.name, CompletionItemKind.Class, docs=c.doc)
|
||||||
|
|
||||||
|
|
||||||
|
@completer(
|
||||||
|
applies_in=[language.UI, language.ObjectContent, language.Template],
|
||||||
|
matches=new_statement_patterns,
|
||||||
|
)
|
||||||
|
def gtk_object_completer(ast_node, match_variables):
|
||||||
|
ns = ast_node.root.gir.namespaces.get("Gtk")
|
||||||
|
if ns is not None:
|
||||||
|
for c in ns.classes.values():
|
||||||
|
yield Completion(c.name, CompletionItemKind.Class, docs=c.doc)
|
||||||
|
|
||||||
|
|
||||||
@completer(
|
@completer(
|
||||||
applies_in=[language.ObjectContent],
|
applies_in=[language.ObjectContent],
|
||||||
matches=new_statement_patterns,
|
matches=new_statement_patterns,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue