Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ast/parser: fresh wildcards for chained function heads #5426

Commits on Nov 29, 2022

  1. ast/parser: fresh wildcards for chained function heads

    This is a spiritual follow-up to open-policy-agent#5412.
    
    A policy like
    
        f(_) := 1 { true } { true } { true }
    
    would have been pretty-printed as
    
        f(_0) := 1
        f(_0) := 1
        f(_0) := 1
    
    because of the duplicated wildcards.
    
    They now get the same treatment as "else" gets: fresh wildcards.
    
    Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
    srenatus committed Nov 29, 2022
    Copy the full SHA
    a09615c View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    ea4666a View commit details
    Browse the repository at this point in the history