summaryrefslogtreecommitdiff
path: root/ops/fast_call.rs
diff options
context:
space:
mode:
authorYiyu Lin <linyiyu1992@gmail.com>2023-01-13 15:51:32 +0800
committerGitHub <noreply@github.com>2023-01-13 16:51:32 +0900
commita00e432297d2ae119c8e1097aec74badc886f912 (patch)
tree7380b37245e889e97a8c7b1535a1e31fddb74738 /ops/fast_call.rs
parent5707a958ac2b44d573d50260b1d0d40887662011 (diff)
chore: add `copyright_checker` tool and add the missing copyright (#17285)
Diffstat (limited to 'ops/fast_call.rs')
-rw-r--r--ops/fast_call.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/ops/fast_call.rs b/ops/fast_call.rs
index f2ed8cb2d..b8fdf91bf 100644
--- a/ops/fast_call.rs
+++ b/ops/fast_call.rs
@@ -1,6 +1,6 @@
-/// Code generation for V8 fast calls.
-use crate::optimizer::FastValue;
-use crate::optimizer::Optimizer;
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+//! Code generation for V8 fast calls.
+
use pmutil::{q, Quote, ToTokensExt};
use proc_macro2::{Span, TokenStream};
use quote::quote;
@@ -9,6 +9,9 @@ use syn::{
Ident, ItemFn, ItemImpl, Path, PathArguments, PathSegment, Type, TypePath,
};
+use crate::optimizer::FastValue;
+use crate::optimizer::Optimizer;
+
pub(crate) struct FastImplItems {
pub(crate) impl_and_fn: TokenStream,
pub(crate) decl: TokenStream,