nix-community / rnix-parser

A Nix parser written in Rust [maintainer=@oberblastmeister]
MIT License
365 stars 44 forks source link

make UnaryOp::operator return Option<UnaryOpKind> #77

Closed oppiliappan closed 2 years ago

oppiliappan commented 2 years ago

Summary & Motivation

UnaryOp::operator should not panic if the AST is incomplete, and should return None instead. This is also now uniform with BinaryOp::operator.

Backwards-incompatible changes

Changes the return type of UnaryOp::operator.

Ma27 commented 2 years ago

@nerdypepper thanks! %)