Notice to GitKraken users: A vulnerability has been found in the SSH key generation of GitKraken versions 7.6.0 to 8.0.0 ( If you use GitKraken and have generated a SSH key using one of these versions, please remove it both from your local workstation and from your LRZ GitLab profile.

21.10.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 78e332b0 authored by Eckhart Arnold's avatar Eckhart Arnold
Browse files

- tranformer_factory annotation now also used for queries like has_name.

parent 60c71076
......@@ -759,10 +759,12 @@ def is_token(node, tokens: AbstractSet[str] = frozenset()) -> bool:
return node.parser.ptype == TOKEN_PTYPE and (not tokens or node.result in tokens)
def has_name(node, tag_names: AbstractSet[str]) -> bool:
return node.tag_name in tag_names
def has_content(node, contents: AbstractSet[str]) -> bool:
return str(node) in contents
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment