Skip to content

How can I parse tokens but ignore some occurrences? #11961

Answered by kaicataldo
felixjb asked this question in Q&A
Discussion options

You must be logged in to vote

In the context of tokens, you could potentially check the previous token to see if it's a . or not. Otherwise, I think this would be easier in the context of the AST, as you can specifically check if the call is a MemberExpression or not.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@kaicataldo
Comment options

@felixjb
Comment options

@kaicataldo
Comment options

@felixjb
Comment options

@kaicataldo
Comment options

Answer selected by nicolo-ribaudo
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