chore: add copyright_checker tool and add the missing copyright (#17285)

This commit is contained in:
Yiyu Lin 2023-01-13 15:51:32 +08:00 committed by GitHub
parent 5707a958ac
commit a00e432297
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
69 changed files with 276 additions and 49 deletions

View file

@ -1,10 +1,13 @@
/// Optimizer for #[op]
use crate::Op;
use pmutil::{q, Quote};
use proc_macro2::TokenStream;
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
//! Optimizer for #[op]
use std::collections::BTreeMap;
use std::fmt::Debug;
use std::fmt::Formatter;
use pmutil::{q, Quote};
use proc_macro2::TokenStream;
use syn::{
parse_quote, punctuated::Punctuated, token::Colon2,
AngleBracketedGenericArguments, FnArg, GenericArgument, PatType, Path,
@ -12,6 +15,8 @@ use syn::{
TypeReference, TypeSlice, TypeTuple,
};
use crate::Op;
#[derive(Debug)]
pub(crate) enum BailoutReason {
// Recoverable errors