Skip to content
Discussion options

You must be logged in to vote

Hi @ballcoach12,

Interesting proposal, currently there's no built-in way to accomplish this.

However, before processing your AST content you could simply run:

streamAllContents(rootElement).forEach(e => {
  if (isGreeting(e.node) && e.node.name === undefined) {
    e.node.name = 'Charlie'; 
  }
})

This should accomplish the same thing for now.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@ballcoach12
Comment options

@spoenemann
Comment options

@ballcoach12
Comment options

@Yokozuna59
Comment options

@msujew
Comment options

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