Skip to content

How to properly access properties & getters using LintRuleNodeRegistry (context.registry.addXXX) ? #213

Answered by rrousselGit
evaisse asked this question in Q&A
Discussion options

You must be logged in to vote

You can look for Identifier & subclasses for myList.first.
I don't remember what's for [x] operators, but that's likely going to be an Expression subclass.

One thing you can do to help debug is use a low-level addNode or addExpression or another general interface, and log print('$node ${node.runtimeType}').
Then you'd know what object type you're looking for.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@evaisse
Comment options

@rrousselGit
Comment options

@evaisse
Comment options

@rrousselGit
Comment options

Answer selected by evaisse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants