denoland / deno_ast

Source text parsing, lexing, and AST related functionality for Deno
https://crates.io/crates/deno_ast
MIT License
148 stars 45 forks source link

Implement common traits for `TranspiledSource` #152

Closed cd-work closed 1 year ago

cd-work commented 1 year ago

I've recently run into the issue that TranspiledSource is not Clone, requiring me to manually clone each field. Considering that a derive is trivial here, it should hopefully save some headaches in the future.

I've also implemented all other relevant traits from STD, based on https://rust-lang.github.io/api-guidelines/interoperability.html#types-eagerly-implement-common-traits-c-common-traits.

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.