diff --git a/compiler/LICENSE b/compiler/LICENSE index b96dcb0480..b93be90515 100644 --- a/compiler/LICENSE +++ b/compiler/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) Facebook, Inc. and its affiliates. +Copyright (c) Meta Platforms, Inc. and affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/compiler/apps/playground/colors.js b/compiler/apps/playground/colors.js index fa7940e58e..fb9f181af5 100644 --- a/compiler/apps/playground/colors.js +++ b/compiler/apps/playground/colors.js @@ -5,9 +5,6 @@ * LICENSE file in the root directory of this source tree. */ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - */ /** * Sync from . diff --git a/compiler/apps/playground/components/Editor/Input.tsx b/compiler/apps/playground/components/Editor/Input.tsx index 9b593fd255..32f82387b0 100644 --- a/compiler/apps/playground/components/Editor/Input.tsx +++ b/compiler/apps/playground/components/Editor/Input.tsx @@ -5,9 +5,6 @@ * LICENSE file in the root directory of this source tree. */ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - */ import MonacoEditor, { loader, type Monaco } from "@monaco-editor/react"; import { CompilerErrorDetail } from "babel-plugin-react-forget/src"; diff --git a/compiler/apps/playground/components/Editor/monacoOptions.ts b/compiler/apps/playground/components/Editor/monacoOptions.ts index d1fbae9532..03af193cc8 100644 --- a/compiler/apps/playground/components/Editor/monacoOptions.ts +++ b/compiler/apps/playground/components/Editor/monacoOptions.ts @@ -5,9 +5,6 @@ * LICENSE file in the root directory of this source tree. */ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - */ import type { EditorProps } from "@monaco-editor/react"; diff --git a/compiler/apps/playground/components/Header.tsx b/compiler/apps/playground/components/Header.tsx index 72c4ad4d1c..44170b561b 100644 --- a/compiler/apps/playground/components/Header.tsx +++ b/compiler/apps/playground/components/Header.tsx @@ -5,9 +5,6 @@ * LICENSE file in the root directory of this source tree. */ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - */ import { RefreshIcon, ShareIcon, TrashIcon } from "@heroicons/react/outline"; import { CheckIcon } from "@heroicons/react/solid"; diff --git a/compiler/apps/playground/components/Logo.tsx b/compiler/apps/playground/components/Logo.tsx index b3828261dc..54ad5fffa6 100644 --- a/compiler/apps/playground/components/Logo.tsx +++ b/compiler/apps/playground/components/Logo.tsx @@ -5,9 +5,6 @@ * LICENSE file in the root directory of this source tree. */ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - */ // https://github.com/reactjs/reactjs.org/blob/main/beta/src/components/Logo.tsx diff --git a/compiler/apps/playground/components/StoreContext.tsx b/compiler/apps/playground/components/StoreContext.tsx index aedee87cb7..09dafae813 100644 --- a/compiler/apps/playground/components/StoreContext.tsx +++ b/compiler/apps/playground/components/StoreContext.tsx @@ -5,9 +5,6 @@ * LICENSE file in the root directory of this source tree. */ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - */ import type { Dispatch, ReactNode } from "react"; import { useReducer } from "react"; diff --git a/compiler/apps/playground/components/index.ts b/compiler/apps/playground/components/index.ts index 66734653d9..283a7c74cc 100644 --- a/compiler/apps/playground/components/index.ts +++ b/compiler/apps/playground/components/index.ts @@ -5,9 +5,6 @@ * LICENSE file in the root directory of this source tree. */ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - */ export { default as Editor } from "./Editor"; export { default as Header } from "./Header"; diff --git a/compiler/apps/playground/hooks/index.ts b/compiler/apps/playground/hooks/index.ts index 4d8ad48ffe..2cca4a9007 100644 --- a/compiler/apps/playground/hooks/index.ts +++ b/compiler/apps/playground/hooks/index.ts @@ -5,8 +5,5 @@ * LICENSE file in the root directory of this source tree. */ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - */ export { default as useMountEffect } from "./useMountEffect"; diff --git a/compiler/apps/playground/hooks/useMountEffect.ts b/compiler/apps/playground/hooks/useMountEffect.ts index 03e10a57f6..b08003bcf7 100644 --- a/compiler/apps/playground/hooks/useMountEffect.ts +++ b/compiler/apps/playground/hooks/useMountEffect.ts @@ -5,9 +5,6 @@ * LICENSE file in the root directory of this source tree. */ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - */ import type { EffectCallback } from "react"; import { useEffect } from "react"; diff --git a/compiler/apps/playground/lib/createContext.ts b/compiler/apps/playground/lib/createContext.ts index a3e53b1af8..c6f129b7d2 100644 --- a/compiler/apps/playground/lib/createContext.ts +++ b/compiler/apps/playground/lib/createContext.ts @@ -5,9 +5,6 @@ * LICENSE file in the root directory of this source tree. */ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - */ import React from "react"; diff --git a/compiler/apps/playground/lib/defaultStore.ts b/compiler/apps/playground/lib/defaultStore.ts index bc6ec7b622..128c677762 100644 --- a/compiler/apps/playground/lib/defaultStore.ts +++ b/compiler/apps/playground/lib/defaultStore.ts @@ -5,9 +5,6 @@ * LICENSE file in the root directory of this source tree. */ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - */ import type { Store } from "./stores"; diff --git a/compiler/apps/playground/lib/forgetMonacoDiagnostics.ts b/compiler/apps/playground/lib/forgetMonacoDiagnostics.ts index 82c72a4c44..5baa44549e 100644 --- a/compiler/apps/playground/lib/forgetMonacoDiagnostics.ts +++ b/compiler/apps/playground/lib/forgetMonacoDiagnostics.ts @@ -5,9 +5,6 @@ * LICENSE file in the root directory of this source tree. */ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - */ import { Monaco } from "@monaco-editor/react"; import { diff --git a/compiler/apps/playground/lib/stores/index.ts b/compiler/apps/playground/lib/stores/index.ts index d696f73984..880ec1c2fd 100644 --- a/compiler/apps/playground/lib/stores/index.ts +++ b/compiler/apps/playground/lib/stores/index.ts @@ -5,9 +5,6 @@ * LICENSE file in the root directory of this source tree. */ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - */ export * from "./messages"; export * from "./store"; diff --git a/compiler/apps/playground/lib/stores/messages.ts b/compiler/apps/playground/lib/stores/messages.ts index 8b9639882a..f3f1495783 100644 --- a/compiler/apps/playground/lib/stores/messages.ts +++ b/compiler/apps/playground/lib/stores/messages.ts @@ -5,9 +5,6 @@ * LICENSE file in the root directory of this source tree. */ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - */ export enum MessageSource { Babel, diff --git a/compiler/apps/playground/lib/stores/store.ts b/compiler/apps/playground/lib/stores/store.ts index 2f5fb6bbcf..d57ec56c42 100644 --- a/compiler/apps/playground/lib/stores/store.ts +++ b/compiler/apps/playground/lib/stores/store.ts @@ -5,9 +5,6 @@ * LICENSE file in the root directory of this source tree. */ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - */ import invariant from "invariant"; import { defaultStore } from "../defaultStore"; diff --git a/compiler/apps/playground/lib/utils.ts b/compiler/apps/playground/lib/utils.ts index 3a94a91fff..43d4f47e24 100644 --- a/compiler/apps/playground/lib/utils.ts +++ b/compiler/apps/playground/lib/utils.ts @@ -5,9 +5,6 @@ * LICENSE file in the root directory of this source tree. */ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - */ /** * Unicode-Base64 Codec. diff --git a/compiler/apps/playground/next-env.d.ts b/compiler/apps/playground/next-env.d.ts index 4f11a03dc6..811cbc51ad 100644 --- a/compiler/apps/playground/next-env.d.ts +++ b/compiler/apps/playground/next-env.d.ts @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /// /// diff --git a/compiler/apps/playground/styles/globals.css b/compiler/apps/playground/styles/globals.css index d4a9b23edc..acb37335db 100644 --- a/compiler/apps/playground/styles/globals.css +++ b/compiler/apps/playground/styles/globals.css @@ -1,5 +1,8 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ @tailwind base; diff --git a/compiler/crates/react_build_hir/src/build.rs b/compiler/crates/react_build_hir/src/build.rs index 49885d082b..f2641af96b 100644 --- a/compiler/crates/react_build_hir/src/build.rs +++ b/compiler/crates/react_build_hir/src/build.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use std::collections::HashSet; use react_diagnostics::Diagnostic; diff --git a/compiler/crates/react_build_hir/src/builder.rs b/compiler/crates/react_build_hir/src/builder.rs index f1be7714d8..3deff7d2f7 100644 --- a/compiler/crates/react_build_hir/src/builder.rs +++ b/compiler/crates/react_build_hir/src/builder.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use std::cell::RefCell; use std::rc::Rc; diff --git a/compiler/crates/react_build_hir/src/context.rs b/compiler/crates/react_build_hir/src/context.rs index 9cecb0d7dd..76f7a38789 100644 --- a/compiler/crates/react_build_hir/src/context.rs +++ b/compiler/crates/react_build_hir/src/context.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use std::collections::HashSet; use react_estree::IntoFunction; diff --git a/compiler/crates/react_build_hir/src/error.rs b/compiler/crates/react_build_hir/src/error.rs index 7f5144ee6e..0235c2f90e 100644 --- a/compiler/crates/react_build_hir/src/error.rs +++ b/compiler/crates/react_build_hir/src/error.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use thiserror::Error; /// Errors which can occur during HIR construction diff --git a/compiler/crates/react_build_hir/src/lib.rs b/compiler/crates/react_build_hir/src/lib.rs index 71210aa421..0f8e6196ff 100644 --- a/compiler/crates/react_build_hir/src/lib.rs +++ b/compiler/crates/react_build_hir/src/lib.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + mod build; mod builder; mod context; diff --git a/compiler/crates/react_diagnostics/src/diagnostic.rs b/compiler/crates/react_diagnostics/src/diagnostic.rs index ebc123fdeb..8816b62170 100644 --- a/compiler/crates/react_diagnostics/src/diagnostic.rs +++ b/compiler/crates/react_diagnostics/src/diagnostic.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use std::error::Error; use std::fmt::{Debug, Display, Write}; diff --git a/compiler/crates/react_diagnostics/src/lib.rs b/compiler/crates/react_diagnostics/src/lib.rs index 2c86957936..1ce36f9095 100644 --- a/compiler/crates/react_diagnostics/src/lib.rs +++ b/compiler/crates/react_diagnostics/src/lib.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + mod diagnostic; pub use diagnostic::*; diff --git a/compiler/crates/react_estree/build.rs b/compiler/crates/react_estree/build.rs index 78e570b6e1..f9687df6ad 100644 --- a/compiler/crates/react_estree/build.rs +++ b/compiler/crates/react_estree/build.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use react_estree_codegen::estree; // Example custom build script. @@ -9,5 +16,16 @@ fn main() { println!("cargo:rerun-if-changed=../react_estree_codegen"); let src = estree(); - std::fs::write("src/generated.rs", src).unwrap(); + let copyright = " +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + " + .to_string(); + let trimmed_copyright = copyright.trim(); + let contents = format!("{trimmed_copyright}\n{src}"); + std::fs::write("src/generated.rs", contents).unwrap(); } diff --git a/compiler/crates/react_estree/src/binding.rs b/compiler/crates/react_estree/src/binding.rs index 4882bb97f6..20a791c157 100644 --- a/compiler/crates/react_estree/src/binding.rs +++ b/compiler/crates/react_estree/src/binding.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Copy, Clone, Debug, PartialEq, Eq, Hash)] diff --git a/compiler/crates/react_estree/src/generated.rs b/compiler/crates/react_estree/src/generated.rs index 332f052a7e..1b9bacfea9 100644 --- a/compiler/crates/react_estree/src/generated.rs +++ b/compiler/crates/react_estree/src/generated.rs @@ -1,3 +1,9 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ // @generated #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(dead_code)] diff --git a/compiler/crates/react_estree/src/generated_extensions.rs b/compiler/crates/react_estree/src/generated_extensions.rs index f746c02f5c..8bb944cfe5 100644 --- a/compiler/crates/react_estree/src/generated_extensions.rs +++ b/compiler/crates/react_estree/src/generated_extensions.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Manual extensions to generated types use crate::{ ArrowFunctionExpression, Class, ClassDeclaration, ClassExpression, Function, diff --git a/compiler/crates/react_estree/src/js_value.rs b/compiler/crates/react_estree/src/js_value.rs index 7a44f85216..5b642da939 100644 --- a/compiler/crates/react_estree/src/js_value.rs +++ b/compiler/crates/react_estree/src/js_value.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use serde::de::Visitor; use serde::{Deserialize, Serialize}; diff --git a/compiler/crates/react_estree/src/lib.rs b/compiler/crates/react_estree/src/lib.rs index 4f5dd69f18..9cc1c3d9c3 100644 --- a/compiler/crates/react_estree/src/lib.rs +++ b/compiler/crates/react_estree/src/lib.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + mod binding; mod generated; mod generated_extensions; diff --git a/compiler/crates/react_estree/src/range.rs b/compiler/crates/react_estree/src/range.rs index 21fcec8945..02887b70f3 100644 --- a/compiler/crates/react_estree/src/range.rs +++ b/compiler/crates/react_estree/src/range.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use std::num::NonZeroU32; use serde::ser::SerializeTuple; diff --git a/compiler/crates/react_estree/src/visit.rs b/compiler/crates/react_estree/src/visit.rs index 9d5c6ad7e2..a29df5c019 100644 --- a/compiler/crates/react_estree/src/visit.rs +++ b/compiler/crates/react_estree/src/visit.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use crate::{ AssignmentPropertyOrRestElement, AssignmentTarget, Class, ClassItem, ClassPrivateProperty, ClassProperty, Declaration, DeclarationOrExpression, ExportAllDeclaration, diff --git a/compiler/crates/react_estree_codegen/src/codegen.rs b/compiler/crates/react_estree_codegen/src/codegen.rs index 39086d5a62..ed06fd27ff 100644 --- a/compiler/crates/react_estree_codegen/src/codegen.rs +++ b/compiler/crates/react_estree_codegen/src/codegen.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use std::collections::HashSet; use indexmap::IndexMap; diff --git a/compiler/crates/react_estree_codegen/src/lib.rs b/compiler/crates/react_estree_codegen/src/lib.rs index f1caaaa1c2..614f5765ab 100644 --- a/compiler/crates/react_estree_codegen/src/lib.rs +++ b/compiler/crates/react_estree_codegen/src/lib.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + mod codegen; pub use codegen::{estree, estree_hermes}; diff --git a/compiler/crates/react_fixtures/src/lib.rs b/compiler/crates/react_fixtures/src/lib.rs index 8b13789179..22a7761560 100644 --- a/compiler/crates/react_fixtures/src/lib.rs +++ b/compiler/crates/react_fixtures/src/lib.rs @@ -1 +1,6 @@ - +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ diff --git a/compiler/crates/react_fixtures/tests/fixtures_test.rs b/compiler/crates/react_fixtures/tests/fixtures_test.rs index 9ddca509aa..a3da273e71 100644 --- a/compiler/crates/react_fixtures/tests/fixtures_test.rs +++ b/compiler/crates/react_fixtures/tests/fixtures_test.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use std::env; use std::fmt::Write; diff --git a/compiler/crates/react_hermes_parser/build.rs b/compiler/crates/react_hermes_parser/build.rs index 907e43c4db..03d5892409 100644 --- a/compiler/crates/react_hermes_parser/build.rs +++ b/compiler/crates/react_hermes_parser/build.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use react_estree_codegen::estree_hermes; // Example custom build script. @@ -9,5 +16,16 @@ fn main() { println!("cargo:rerun-if-changed=../react_estree_codegen"); let src = estree_hermes(); - std::fs::write("src/generated.rs", src).unwrap(); + let copyright = " +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + " + .to_string(); + let trimmed_copyright = copyright.trim(); + let contents = format!("{trimmed_copyright}\n{src}"); + std::fs::write("src/generated.rs", contents).unwrap(); } diff --git a/compiler/crates/react_hermes_parser/src/generated.rs b/compiler/crates/react_hermes_parser/src/generated.rs index ed9a78e791..718f5ab381 100644 --- a/compiler/crates/react_hermes_parser/src/generated.rs +++ b/compiler/crates/react_hermes_parser/src/generated.rs @@ -1,3 +1,9 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ // @generated #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(dead_code)] diff --git a/compiler/crates/react_hermes_parser/src/generated_extension.rs b/compiler/crates/react_hermes_parser/src/generated_extension.rs index 9b48829cc9..bf9ac87a99 100644 --- a/compiler/crates/react_hermes_parser/src/generated_extension.rs +++ b/compiler/crates/react_hermes_parser/src/generated_extension.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use std::num::NonZeroU32; use hermes::parser::{ diff --git a/compiler/crates/react_hermes_parser/src/lib.rs b/compiler/crates/react_hermes_parser/src/lib.rs index 3e8ebd4ffc..8524d4571f 100644 --- a/compiler/crates/react_hermes_parser/src/lib.rs +++ b/compiler/crates/react_hermes_parser/src/lib.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + mod generated; mod generated_extension; diff --git a/compiler/crates/react_hermes_parser/tests/parser_test.rs b/compiler/crates/react_hermes_parser/tests/parser_test.rs index 2e782a4d4f..d2e24d4a0f 100644 --- a/compiler/crates/react_hermes_parser/tests/parser_test.rs +++ b/compiler/crates/react_hermes_parser/tests/parser_test.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use std::env; use insta::{assert_snapshot, glob}; diff --git a/compiler/crates/react_hir/src/basic_block.rs b/compiler/crates/react_hir/src/basic_block.rs index 2bf2b67d20..6ee7f4cc7e 100644 --- a/compiler/crates/react_hir/src/basic_block.rs +++ b/compiler/crates/react_hir/src/basic_block.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use std::fmt::Display; use indexmap::{IndexMap, IndexSet}; diff --git a/compiler/crates/react_hir/src/environment.rs b/compiler/crates/react_hir/src/environment.rs index 3231f70110..bf9c91a47e 100644 --- a/compiler/crates/react_hir/src/environment.rs +++ b/compiler/crates/react_hir/src/environment.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use std::cell::{Cell, RefCell}; use std::collections::HashMap; use std::rc::Rc; diff --git a/compiler/crates/react_hir/src/features.rs b/compiler/crates/react_hir/src/features.rs index 22eeb39cef..bbe9ffbd8e 100644 --- a/compiler/crates/react_hir/src/features.rs +++ b/compiler/crates/react_hir/src/features.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use serde::{Deserialize, Serialize}; /// Describes the feature flags available to control compilation and validation. diff --git a/compiler/crates/react_hir/src/function.rs b/compiler/crates/react_hir/src/function.rs index f7c9bc309e..b05613ca7a 100644 --- a/compiler/crates/react_hir/src/function.rs +++ b/compiler/crates/react_hir/src/function.rs @@ -1,3 +1,9 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ use indexmap::IndexMap; use react_diagnostics::Diagnostic; diff --git a/compiler/crates/react_hir/src/id_types.rs b/compiler/crates/react_hir/src/id_types.rs index f9f6992f05..036a7d6aec 100644 --- a/compiler/crates/react_hir/src/id_types.rs +++ b/compiler/crates/react_hir/src/id_types.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use std::fmt::Display; /// Unique identifier for a basic block. Values are unique only with respect to diff --git a/compiler/crates/react_hir/src/initialize.rs b/compiler/crates/react_hir/src/initialize.rs index 0d98eea6e4..0f5d5e9ce9 100644 --- a/compiler/crates/react_hir/src/initialize.rs +++ b/compiler/crates/react_hir/src/initialize.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use std::collections::HashSet; use react_diagnostics::{invariant, Diagnostic}; diff --git a/compiler/crates/react_hir/src/inline_use_memo.rs b/compiler/crates/react_hir/src/inline_use_memo.rs index ec8257e684..d015379349 100644 --- a/compiler/crates/react_hir/src/inline_use_memo.rs +++ b/compiler/crates/react_hir/src/inline_use_memo.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use std::cell::RefCell; use std::collections::{HashMap, HashSet}; use std::rc::Rc; diff --git a/compiler/crates/react_hir/src/instruction.rs b/compiler/crates/react_hir/src/instruction.rs index 77a898c5bf..ca17cb5536 100644 --- a/compiler/crates/react_hir/src/instruction.rs +++ b/compiler/crates/react_hir/src/instruction.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use std::cell::RefCell; use std::fmt::Display; use std::rc::Rc; diff --git a/compiler/crates/react_hir/src/lib.rs b/compiler/crates/react_hir/src/lib.rs index d26c7b3386..8e69916cd2 100644 --- a/compiler/crates/react_hir/src/lib.rs +++ b/compiler/crates/react_hir/src/lib.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + mod basic_block; mod environment; mod features; diff --git a/compiler/crates/react_hir/src/merge_consecutive_blocks.rs b/compiler/crates/react_hir/src/merge_consecutive_blocks.rs index c47c0941d5..d9cd7bded7 100644 --- a/compiler/crates/react_hir/src/merge_consecutive_blocks.rs +++ b/compiler/crates/react_hir/src/merge_consecutive_blocks.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use std::collections::HashMap; use react_diagnostics::{invariant, Diagnostic}; diff --git a/compiler/crates/react_hir/src/print.rs b/compiler/crates/react_hir/src/print.rs index 28df25715a..5070535faa 100644 --- a/compiler/crates/react_hir/src/print.rs +++ b/compiler/crates/react_hir/src/print.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use std::fmt::{Result, Write}; use react_estree::JsValue; diff --git a/compiler/crates/react_hir/src/registry.rs b/compiler/crates/react_hir/src/registry.rs index f9def39d1c..eb889d8a4a 100644 --- a/compiler/crates/react_hir/src/registry.rs +++ b/compiler/crates/react_hir/src/registry.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /// TODO: merge GlobalRegistry and ShapeRegistry into a single /// data structure #[derive(Debug)] diff --git a/compiler/crates/react_hir/src/terminal.rs b/compiler/crates/react_hir/src/terminal.rs index 5a13cd432f..6bb7f4f06e 100644 --- a/compiler/crates/react_hir/src/terminal.rs +++ b/compiler/crates/react_hir/src/terminal.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use crate::instruction::IdentifierOperand; use crate::{BlockId, InstructionId}; diff --git a/compiler/crates/react_hir/src/types.rs b/compiler/crates/react_hir/src/types.rs index d7e5ccd5cd..83a283926b 100644 --- a/compiler/crates/react_hir/src/types.rs +++ b/compiler/crates/react_hir/src/types.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use crate::{FunctionId, ObjectId, TypeVarId}; #[derive(Clone, Debug)] diff --git a/compiler/crates/react_napi/build.rs b/compiler/crates/react_napi/build.rs index 0f1b01002b..96296a9ed2 100644 --- a/compiler/crates/react_napi/build.rs +++ b/compiler/crates/react_napi/build.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + fn main() { napi_build::setup(); } diff --git a/compiler/crates/react_napi/src/lib.rs b/compiler/crates/react_napi/src/lib.rs index 015f1f56e4..f82281044a 100644 --- a/compiler/crates/react_napi/src/lib.rs +++ b/compiler/crates/react_napi/src/lib.rs @@ -1,3 +1,9 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ use napi_derive::napi; use react_diagnostics::Diagnostic; use react_semantic_analysis::{analyze, AnalyzeOptions}; diff --git a/compiler/crates/react_optimization/src/constant_propagation.rs b/compiler/crates/react_optimization/src/constant_propagation.rs index 25a39d7685..f56157074b 100644 --- a/compiler/crates/react_optimization/src/constant_propagation.rs +++ b/compiler/crates/react_optimization/src/constant_propagation.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use std::collections::HashMap; use react_diagnostics::Diagnostic; diff --git a/compiler/crates/react_optimization/src/lib.rs b/compiler/crates/react_optimization/src/lib.rs index 96d2279b5c..8e5c53f726 100644 --- a/compiler/crates/react_optimization/src/lib.rs +++ b/compiler/crates/react_optimization/src/lib.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + mod constant_propagation; pub use constant_propagation::constant_propagation; diff --git a/compiler/crates/react_semantic_analysis/src/analyzer.rs b/compiler/crates/react_semantic_analysis/src/analyzer.rs index d6caae1dfc..c2e3eb58f7 100644 --- a/compiler/crates/react_semantic_analysis/src/analyzer.rs +++ b/compiler/crates/react_semantic_analysis/src/analyzer.rs @@ -1,3 +1,9 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ use react_diagnostics::Diagnostic; use react_estree::{ AssignmentOperator, AssignmentPropertyOrRestElement, AssignmentTarget, Expression, diff --git a/compiler/crates/react_semantic_analysis/src/lib.rs b/compiler/crates/react_semantic_analysis/src/lib.rs index 8cf5c944e8..4473687914 100644 --- a/compiler/crates/react_semantic_analysis/src/lib.rs +++ b/compiler/crates/react_semantic_analysis/src/lib.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + mod analyzer; mod scope_manager; mod scope_view; diff --git a/compiler/crates/react_semantic_analysis/src/scope_manager.rs b/compiler/crates/react_semantic_analysis/src/scope_manager.rs index 39e780039f..075acf6f34 100644 --- a/compiler/crates/react_semantic_analysis/src/scope_manager.rs +++ b/compiler/crates/react_semantic_analysis/src/scope_manager.rs @@ -1,3 +1,9 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ use indexmap::IndexMap; use react_diagnostics::Diagnostic; use react_estree::{ diff --git a/compiler/crates/react_semantic_analysis/src/scope_view.rs b/compiler/crates/react_semantic_analysis/src/scope_view.rs index 69ccb1dd53..1a9c9a7b5e 100644 --- a/compiler/crates/react_semantic_analysis/src/scope_view.rs +++ b/compiler/crates/react_semantic_analysis/src/scope_view.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use indexmap::IndexMap; use crate::{ diff --git a/compiler/crates/react_semantic_analysis/tests/analysis_test.rs b/compiler/crates/react_semantic_analysis/tests/analysis_test.rs index ec35b8ac8e..5bbf45bb6e 100644 --- a/compiler/crates/react_semantic_analysis/tests/analysis_test.rs +++ b/compiler/crates/react_semantic_analysis/tests/analysis_test.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use std::fmt::Write; use insta::{assert_snapshot, glob}; diff --git a/compiler/crates/react_ssa/src/eliminate_redundant_phis.rs b/compiler/crates/react_ssa/src/eliminate_redundant_phis.rs index e14e0bacb1..21996dcc8f 100644 --- a/compiler/crates/react_ssa/src/eliminate_redundant_phis.rs +++ b/compiler/crates/react_ssa/src/eliminate_redundant_phis.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use std::collections::{HashMap, HashSet}; use react_hir::{BlockId, Environment, Function, Identifier, IdentifierId, InstructionValue}; diff --git a/compiler/crates/react_ssa/src/enter.rs b/compiler/crates/react_ssa/src/enter.rs index ce71cdf124..ca011de7b1 100644 --- a/compiler/crates/react_ssa/src/enter.rs +++ b/compiler/crates/react_ssa/src/enter.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + use std::cell::RefCell; use std::rc::Rc; diff --git a/compiler/crates/react_ssa/src/leave.rs b/compiler/crates/react_ssa/src/leave.rs index 42f8881b04..8ccb398439 100644 --- a/compiler/crates/react_ssa/src/leave.rs +++ b/compiler/crates/react_ssa/src/leave.rs @@ -1,3 +1,9 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ use react_hir::{Environment, HIR}; pub fn leave_ssa(_env: &Environment, _hir: &mut HIR) { diff --git a/compiler/crates/react_ssa/src/lib.rs b/compiler/crates/react_ssa/src/lib.rs index b5119bdd7b..ced091d525 100644 --- a/compiler/crates/react_ssa/src/lib.rs +++ b/compiler/crates/react_ssa/src/lib.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + mod eliminate_redundant_phis; mod enter; mod leave; diff --git a/compiler/crates/react_utils/src/lib.rs b/compiler/crates/react_utils/src/lib.rs index 5f239aab26..28673fdae6 100644 --- a/compiler/crates/react_utils/src/lib.rs +++ b/compiler/crates/react_utils/src/lib.rs @@ -1,3 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + mod ensure_sufficient_stack; mod pointer_address; diff --git a/compiler/packages/babel-plugin-react-forget/.eslintrc.js b/compiler/packages/babel-plugin-react-forget/.eslintrc.js index b56cb97bce..f669ee5d41 100644 --- a/compiler/packages/babel-plugin-react-forget/.eslintrc.js +++ b/compiler/packages/babel-plugin-react-forget/.eslintrc.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Our philosophy for linting is that lints should be very high-signal: * - Error, don't warn. If it's worth mentioning it's worth fixing. diff --git a/compiler/packages/babel-plugin-react-forget/scripts/babel-plugin-annotate-react-code.ts b/compiler/packages/babel-plugin-react-forget/scripts/babel-plugin-annotate-react-code.ts index 454e6c5cf2..babc295d3d 100644 --- a/compiler/packages/babel-plugin-react-forget/scripts/babel-plugin-annotate-react-code.ts +++ b/compiler/packages/babel-plugin-react-forget/scripts/babel-plugin-annotate-react-code.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/scripts/ts-analyze-trace.sh b/compiler/packages/babel-plugin-react-forget/scripts/ts-analyze-trace.sh index d2da0546f8..0c7a13ecd0 100755 --- a/compiler/packages/babel-plugin-react-forget/scripts/ts-analyze-trace.sh +++ b/compiler/packages/babel-plugin-react-forget/scripts/ts-analyze-trace.sh @@ -1,4 +1,11 @@ #!/usr/bin/env bash +# +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. +# + # Generates a TypeScript performance trace in a tmp folder, then runs the analyze-trace npm module # to identify any hotspots that might cause slow compilation # See https://github.com/microsoft/typescript-analyze-trace for CLI args diff --git a/compiler/packages/babel-plugin-react-forget/src/Babel/BabelPlugin.ts b/compiler/packages/babel-plugin-react-forget/src/Babel/BabelPlugin.ts index e717a2856e..bfacd5048f 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Babel/BabelPlugin.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Babel/BabelPlugin.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Babel/RunReactForgetBabelPlugin.ts b/compiler/packages/babel-plugin-react-forget/src/Babel/RunReactForgetBabelPlugin.ts index d9b06da197..f6bcf92673 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Babel/RunReactForgetBabelPlugin.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Babel/RunReactForgetBabelPlugin.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/CompilerError.ts b/compiler/packages/babel-plugin-react-forget/src/CompilerError.ts index e15a11973b..47567a4e4a 100644 --- a/compiler/packages/babel-plugin-react-forget/src/CompilerError.ts +++ b/compiler/packages/babel-plugin-react-forget/src/CompilerError.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Gating.ts b/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Gating.ts index d180175fb8..26d8912145 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Gating.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Gating.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Imports.ts b/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Imports.ts index 5eff1a0f70..d63796d6a5 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Imports.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Imports.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Options.ts b/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Options.ts index 0d5eda129c..bcefec39ef 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Options.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Options.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Pipeline.ts b/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Pipeline.ts index d596132be7..c50381de9c 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Pipeline.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Pipeline.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Program.ts b/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Program.ts index f5020b559c..911d3e13b4 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Program.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Program.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Suppression.ts b/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Suppression.ts index 22c3028886..43f5e01301 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Suppression.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Suppression.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Entrypoint/index.ts b/compiler/packages/babel-plugin-react-forget/src/Entrypoint/index.ts index 9118d04ec2..c4fef90870 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Entrypoint/index.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Entrypoint/index.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/HIR/AssertConsistentIdentifiers.ts b/compiler/packages/babel-plugin-react-forget/src/HIR/AssertConsistentIdentifiers.ts index b66cea2d4c..3a0eb566e7 100644 --- a/compiler/packages/babel-plugin-react-forget/src/HIR/AssertConsistentIdentifiers.ts +++ b/compiler/packages/babel-plugin-react-forget/src/HIR/AssertConsistentIdentifiers.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/HIR/AssertTerminalSuccessorsExist.ts b/compiler/packages/babel-plugin-react-forget/src/HIR/AssertTerminalSuccessorsExist.ts index 868df4d2cc..493ff54c03 100644 --- a/compiler/packages/babel-plugin-react-forget/src/HIR/AssertTerminalSuccessorsExist.ts +++ b/compiler/packages/babel-plugin-react-forget/src/HIR/AssertTerminalSuccessorsExist.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/HIR/AssertValidMutableRanges.ts b/compiler/packages/babel-plugin-react-forget/src/HIR/AssertValidMutableRanges.ts index 247f9248e8..0e71dcb41f 100644 --- a/compiler/packages/babel-plugin-react-forget/src/HIR/AssertValidMutableRanges.ts +++ b/compiler/packages/babel-plugin-react-forget/src/HIR/AssertValidMutableRanges.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/HIR/BuildHIR.ts b/compiler/packages/babel-plugin-react-forget/src/HIR/BuildHIR.ts index 5101f362b8..30e6181a95 100644 --- a/compiler/packages/babel-plugin-react-forget/src/HIR/BuildHIR.ts +++ b/compiler/packages/babel-plugin-react-forget/src/HIR/BuildHIR.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/HIR/ComputeUnconditionalBlocks.ts b/compiler/packages/babel-plugin-react-forget/src/HIR/ComputeUnconditionalBlocks.ts index c2ebe22068..20037795e9 100644 --- a/compiler/packages/babel-plugin-react-forget/src/HIR/ComputeUnconditionalBlocks.ts +++ b/compiler/packages/babel-plugin-react-forget/src/HIR/ComputeUnconditionalBlocks.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/HIR/Dominator.ts b/compiler/packages/babel-plugin-react-forget/src/HIR/Dominator.ts index 349fabf2e4..74fbed66fd 100644 --- a/compiler/packages/babel-plugin-react-forget/src/HIR/Dominator.ts +++ b/compiler/packages/babel-plugin-react-forget/src/HIR/Dominator.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/HIR/Environment.ts b/compiler/packages/babel-plugin-react-forget/src/HIR/Environment.ts index bbf6ae8666..63409114fc 100644 --- a/compiler/packages/babel-plugin-react-forget/src/HIR/Environment.ts +++ b/compiler/packages/babel-plugin-react-forget/src/HIR/Environment.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/HIR/FindContextIdentifiers.ts b/compiler/packages/babel-plugin-react-forget/src/HIR/FindContextIdentifiers.ts index 6f4824ade6..1161b297b9 100644 --- a/compiler/packages/babel-plugin-react-forget/src/HIR/FindContextIdentifiers.ts +++ b/compiler/packages/babel-plugin-react-forget/src/HIR/FindContextIdentifiers.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/HIR/Globals.ts b/compiler/packages/babel-plugin-react-forget/src/HIR/Globals.ts index 49156370d0..ae70a49c63 100644 --- a/compiler/packages/babel-plugin-react-forget/src/HIR/Globals.ts +++ b/compiler/packages/babel-plugin-react-forget/src/HIR/Globals.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/HIR/HIR.ts b/compiler/packages/babel-plugin-react-forget/src/HIR/HIR.ts index f3cfb374ef..eccf74ff3b 100644 --- a/compiler/packages/babel-plugin-react-forget/src/HIR/HIR.ts +++ b/compiler/packages/babel-plugin-react-forget/src/HIR/HIR.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/HIR/HIRBuilder.ts b/compiler/packages/babel-plugin-react-forget/src/HIR/HIRBuilder.ts index 966b778fb2..f9b44cd379 100644 --- a/compiler/packages/babel-plugin-react-forget/src/HIR/HIRBuilder.ts +++ b/compiler/packages/babel-plugin-react-forget/src/HIR/HIRBuilder.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/HIR/MergeConsecutiveBlocks.ts b/compiler/packages/babel-plugin-react-forget/src/HIR/MergeConsecutiveBlocks.ts index f965f96d2c..6311eb5def 100644 --- a/compiler/packages/babel-plugin-react-forget/src/HIR/MergeConsecutiveBlocks.ts +++ b/compiler/packages/babel-plugin-react-forget/src/HIR/MergeConsecutiveBlocks.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/HIR/ObjectShape.ts b/compiler/packages/babel-plugin-react-forget/src/HIR/ObjectShape.ts index 2bb7192977..22fd4ee3e2 100644 --- a/compiler/packages/babel-plugin-react-forget/src/HIR/ObjectShape.ts +++ b/compiler/packages/babel-plugin-react-forget/src/HIR/ObjectShape.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/HIR/PrintHIR.ts b/compiler/packages/babel-plugin-react-forget/src/HIR/PrintHIR.ts index 11853968eb..a71485128a 100644 --- a/compiler/packages/babel-plugin-react-forget/src/HIR/PrintHIR.ts +++ b/compiler/packages/babel-plugin-react-forget/src/HIR/PrintHIR.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/HIR/Types.ts b/compiler/packages/babel-plugin-react-forget/src/HIR/Types.ts index ea0c6c0909..f1d08f762b 100644 --- a/compiler/packages/babel-plugin-react-forget/src/HIR/Types.ts +++ b/compiler/packages/babel-plugin-react-forget/src/HIR/Types.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/HIR/index.ts b/compiler/packages/babel-plugin-react-forget/src/HIR/index.ts index 2355ac8a1e..b90bc8bd18 100644 --- a/compiler/packages/babel-plugin-react-forget/src/HIR/index.ts +++ b/compiler/packages/babel-plugin-react-forget/src/HIR/index.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/HIR/visitors.ts b/compiler/packages/babel-plugin-react-forget/src/HIR/visitors.ts index 13960bbb5d..62313c2dd8 100644 --- a/compiler/packages/babel-plugin-react-forget/src/HIR/visitors.ts +++ b/compiler/packages/babel-plugin-react-forget/src/HIR/visitors.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Inference/AnalyseFunctions.ts b/compiler/packages/babel-plugin-react-forget/src/Inference/AnalyseFunctions.ts index abcab6773e..e855340fb0 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Inference/AnalyseFunctions.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Inference/AnalyseFunctions.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Inference/DropManualMemoization.ts b/compiler/packages/babel-plugin-react-forget/src/Inference/DropManualMemoization.ts index 570db17e15..ee81855fca 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Inference/DropManualMemoization.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Inference/DropManualMemoization.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Inference/InferAlias.ts b/compiler/packages/babel-plugin-react-forget/src/Inference/InferAlias.ts index a2bd0f72be..14d7c1bdd1 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Inference/InferAlias.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Inference/InferAlias.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Inference/InferAliasForPhis.ts b/compiler/packages/babel-plugin-react-forget/src/Inference/InferAliasForPhis.ts index 6f0020b923..f47a2dc38b 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Inference/InferAliasForPhis.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Inference/InferAliasForPhis.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Inference/InferAliasForStores.ts b/compiler/packages/babel-plugin-react-forget/src/Inference/InferAliasForStores.ts index 996980d48f..79591a8c59 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Inference/InferAliasForStores.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Inference/InferAliasForStores.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Inference/InferMutableContextVariables.ts b/compiler/packages/babel-plugin-react-forget/src/Inference/InferMutableContextVariables.ts index c978610fcd..ed8736df12 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Inference/InferMutableContextVariables.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Inference/InferMutableContextVariables.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Inference/InferMutableLifetimes.ts b/compiler/packages/babel-plugin-react-forget/src/Inference/InferMutableLifetimes.ts index dda812bb5d..3d494645fc 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Inference/InferMutableLifetimes.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Inference/InferMutableLifetimes.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Inference/InferMutableRanges.ts b/compiler/packages/babel-plugin-react-forget/src/Inference/InferMutableRanges.ts index cc23d81eb7..c03dd5c250 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Inference/InferMutableRanges.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Inference/InferMutableRanges.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Inference/InferMutableRangesForAlias.ts b/compiler/packages/babel-plugin-react-forget/src/Inference/InferMutableRangesForAlias.ts index fddc3974de..fcfe4df4ad 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Inference/InferMutableRangesForAlias.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Inference/InferMutableRangesForAlias.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Inference/InferReactivePlaces.ts b/compiler/packages/babel-plugin-react-forget/src/Inference/InferReactivePlaces.ts index 68037b63c7..97050fe55e 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Inference/InferReactivePlaces.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Inference/InferReactivePlaces.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Inference/InferReferenceEffects.ts b/compiler/packages/babel-plugin-react-forget/src/Inference/InferReferenceEffects.ts index 20efae0b61..e2c65e699d 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Inference/InferReferenceEffects.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Inference/InferReferenceEffects.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Inference/InferTryCatchAliases.ts b/compiler/packages/babel-plugin-react-forget/src/Inference/InferTryCatchAliases.ts index ddb78d9e45..9b2e6896ad 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Inference/InferTryCatchAliases.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Inference/InferTryCatchAliases.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Inference/InlineImmediatelyInvokedFunctionExpressions.ts b/compiler/packages/babel-plugin-react-forget/src/Inference/InlineImmediatelyInvokedFunctionExpressions.ts index 15af8d5d15..5da6fcd4fe 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Inference/InlineImmediatelyInvokedFunctionExpressions.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Inference/InlineImmediatelyInvokedFunctionExpressions.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Inference/index.ts b/compiler/packages/babel-plugin-react-forget/src/Inference/index.ts index cdd3a497eb..96d6df455a 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Inference/index.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Inference/index.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Optimization/ConstantPropagation.ts b/compiler/packages/babel-plugin-react-forget/src/Optimization/ConstantPropagation.ts index 6c5c263059..58ffa08eb0 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Optimization/ConstantPropagation.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Optimization/ConstantPropagation.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Optimization/DeadCodeElimination.ts b/compiler/packages/babel-plugin-react-forget/src/Optimization/DeadCodeElimination.ts index 2ce93475a8..1dc72883ba 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Optimization/DeadCodeElimination.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Optimization/DeadCodeElimination.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Optimization/PruneMaybeThrows.ts b/compiler/packages/babel-plugin-react-forget/src/Optimization/PruneMaybeThrows.ts index c39d2a04c3..22758f0e7c 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Optimization/PruneMaybeThrows.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Optimization/PruneMaybeThrows.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Optimization/index.ts b/compiler/packages/babel-plugin-react-forget/src/Optimization/index.ts index 7305cc9783..4d2cffdbdf 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Optimization/index.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Optimization/index.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/AlignMethodCallScopes.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/AlignMethodCallScopes.ts index 1d52e6d679..fd56f6cab9 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/AlignMethodCallScopes.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/AlignMethodCallScopes.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/AlignObjectMethodScopes.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/AlignObjectMethodScopes.ts index 4d79fbc4b1..b6f8f833c8 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/AlignObjectMethodScopes.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/AlignObjectMethodScopes.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/AlignReactiveScopesToBlockScopes.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/AlignReactiveScopesToBlockScopes.ts index 57ee729045..09978b1862 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/AlignReactiveScopesToBlockScopes.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/AlignReactiveScopesToBlockScopes.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/AssertScopeInstructionsWithinScope.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/AssertScopeInstructionsWithinScope.ts index 210ed867fc..7a91f0f107 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/AssertScopeInstructionsWithinScope.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/AssertScopeInstructionsWithinScope.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/BuildReactiveBlocks.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/BuildReactiveBlocks.ts index 819a5dc694..31192dca0b 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/BuildReactiveBlocks.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/BuildReactiveBlocks.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/BuildReactiveFunction.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/BuildReactiveFunction.ts index 689c9a5d4c..2950a00ce0 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/BuildReactiveFunction.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/BuildReactiveFunction.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/CodegenReactiveFunction.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/CodegenReactiveFunction.ts index 11296c1059..fe923a5290 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/CodegenReactiveFunction.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/CodegenReactiveFunction.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/CollectReactiveIdentifiers.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/CollectReactiveIdentifiers.ts index 22ddb7d44f..b4e262158a 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/CollectReactiveIdentifiers.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/CollectReactiveIdentifiers.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/CollectReferencedGlobals.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/CollectReferencedGlobals.ts index 3ca0d54fd9..95e3849576 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/CollectReferencedGlobals.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/CollectReferencedGlobals.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/DeriveMinimalDependencies.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/DeriveMinimalDependencies.ts index c458cc316f..0bff894cea 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/DeriveMinimalDependencies.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/DeriveMinimalDependencies.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/ExtractScopeDeclarationsFromDestructuring.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/ExtractScopeDeclarationsFromDestructuring.ts index 50841f5be4..1543c48a88 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/ExtractScopeDeclarationsFromDestructuring.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/ExtractScopeDeclarationsFromDestructuring.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/FlattenReactiveLoops.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/FlattenReactiveLoops.ts index 69ac85333b..cb44bc9760 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/FlattenReactiveLoops.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/FlattenReactiveLoops.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/FlattenScopesWithHooksOrUse.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/FlattenScopesWithHooksOrUse.ts index 5d95f4a009..d9af65d5ec 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/FlattenScopesWithHooksOrUse.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/FlattenScopesWithHooksOrUse.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/InferReactiveScopeVariables.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/InferReactiveScopeVariables.ts index 64c960946f..5984a39b2b 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/InferReactiveScopeVariables.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/InferReactiveScopeVariables.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/MemoizeFbtOperandsInSameScope.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/MemoizeFbtOperandsInSameScope.ts index 7cfce77559..835a8131f9 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/MemoizeFbtOperandsInSameScope.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/MemoizeFbtOperandsInSameScope.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/MergeOverlappingReactiveScopes.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/MergeOverlappingReactiveScopes.ts index 3361af032a..44608b222f 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/MergeOverlappingReactiveScopes.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/MergeOverlappingReactiveScopes.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/MergeReactiveScopesThatInvalidateTogether.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/MergeReactiveScopesThatInvalidateTogether.ts index b16d7591aa..5e8477f457 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/MergeReactiveScopesThatInvalidateTogether.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/MergeReactiveScopesThatInvalidateTogether.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PrintReactiveFunction.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PrintReactiveFunction.ts index 1a68895801..69725ff5b3 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PrintReactiveFunction.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PrintReactiveFunction.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PromoteUsedTemporaries.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PromoteUsedTemporaries.ts index 7af588c544..a3f5768336 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PromoteUsedTemporaries.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PromoteUsedTemporaries.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PropagateEarlyReturns.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PropagateEarlyReturns.ts index 64ce317986..aa84152f68 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PropagateEarlyReturns.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PropagateEarlyReturns.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PropagateScopeDependencies.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PropagateScopeDependencies.ts index 546967d4dd..84bc8da199 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PropagateScopeDependencies.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PropagateScopeDependencies.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneAllReactiveScopes.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneAllReactiveScopes.ts index 8b0131d7b9..33d97d3d71 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneAllReactiveScopes.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneAllReactiveScopes.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneAlwaysInvalidatingScopes.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneAlwaysInvalidatingScopes.ts index 9c1adc12c2..1227acca86 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneAlwaysInvalidatingScopes.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneAlwaysInvalidatingScopes.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneHoistedContexts.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneHoistedContexts.ts index 03516f475c..a62717c836 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneHoistedContexts.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneHoistedContexts.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneNonEscapingScopes.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneNonEscapingScopes.ts index 9f983d47dd..96b0458be9 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneNonEscapingScopes.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneNonEscapingScopes.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneNonReactiveDependencies.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneNonReactiveDependencies.ts index 6e8c3b903a..0c82cefc59 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneNonReactiveDependencies.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneNonReactiveDependencies.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneTemporaryLValues.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneTemporaryLValues.ts index 13df245c0e..bf34573c2d 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneTemporaryLValues.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneTemporaryLValues.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneUnusedLabels.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneUnusedLabels.ts index 4265d464b6..8c31eb84e5 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneUnusedLabels.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneUnusedLabels.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneUnusedScopes.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneUnusedScopes.ts index 57e77f3b5e..0a3b712768 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneUnusedScopes.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneUnusedScopes.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/RenameVariables.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/RenameVariables.ts index f8f690b3cd..6f5100bb7b 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/RenameVariables.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/RenameVariables.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/index.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/index.ts index 81a4a5b92f..089e136fda 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/index.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/index.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/visitors.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/visitors.ts index def9c9dd03..857f2ba8dc 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/visitors.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/visitors.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/SSA/EliminateRedundantPhi.ts b/compiler/packages/babel-plugin-react-forget/src/SSA/EliminateRedundantPhi.ts index 220147122e..2631147889 100644 --- a/compiler/packages/babel-plugin-react-forget/src/SSA/EliminateRedundantPhi.ts +++ b/compiler/packages/babel-plugin-react-forget/src/SSA/EliminateRedundantPhi.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/SSA/EnterSSA.ts b/compiler/packages/babel-plugin-react-forget/src/SSA/EnterSSA.ts index 1a0c26089b..e39b54aaca 100644 --- a/compiler/packages/babel-plugin-react-forget/src/SSA/EnterSSA.ts +++ b/compiler/packages/babel-plugin-react-forget/src/SSA/EnterSSA.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/SSA/LeaveSSA.ts b/compiler/packages/babel-plugin-react-forget/src/SSA/LeaveSSA.ts index 7d75ec729b..86d55e40e0 100644 --- a/compiler/packages/babel-plugin-react-forget/src/SSA/LeaveSSA.ts +++ b/compiler/packages/babel-plugin-react-forget/src/SSA/LeaveSSA.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/SSA/index.ts b/compiler/packages/babel-plugin-react-forget/src/SSA/index.ts index 73dea0d752..7d1d8917b3 100644 --- a/compiler/packages/babel-plugin-react-forget/src/SSA/index.ts +++ b/compiler/packages/babel-plugin-react-forget/src/SSA/index.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/TypeInference/InferTypes.ts b/compiler/packages/babel-plugin-react-forget/src/TypeInference/InferTypes.ts index e68ce57357..627332d50d 100644 --- a/compiler/packages/babel-plugin-react-forget/src/TypeInference/InferTypes.ts +++ b/compiler/packages/babel-plugin-react-forget/src/TypeInference/InferTypes.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/TypeInference/index.ts b/compiler/packages/babel-plugin-react-forget/src/TypeInference/index.ts index 88143d38ab..adc3a55c7a 100644 --- a/compiler/packages/babel-plugin-react-forget/src/TypeInference/index.ts +++ b/compiler/packages/babel-plugin-react-forget/src/TypeInference/index.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Utils/ComponentDeclaration.ts b/compiler/packages/babel-plugin-react-forget/src/Utils/ComponentDeclaration.ts index 9a5967d80d..a0dd4aa14b 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Utils/ComponentDeclaration.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Utils/ComponentDeclaration.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Utils/DisjointSet.ts b/compiler/packages/babel-plugin-react-forget/src/Utils/DisjointSet.ts index f025c86ead..8668364758 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Utils/DisjointSet.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Utils/DisjointSet.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Utils/HookDeclaration.ts b/compiler/packages/babel-plugin-react-forget/src/Utils/HookDeclaration.ts index 605fdd00f9..4b3e9d9f21 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Utils/HookDeclaration.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Utils/HookDeclaration.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Utils/Result.ts b/compiler/packages/babel-plugin-react-forget/src/Utils/Result.ts index f99ef2aa9f..48205829a5 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Utils/Result.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Utils/Result.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Utils/RuntimeDiagnosticConstants.ts b/compiler/packages/babel-plugin-react-forget/src/Utils/RuntimeDiagnosticConstants.ts index 810ac11db4..5f0712b23a 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Utils/RuntimeDiagnosticConstants.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Utils/RuntimeDiagnosticConstants.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Utils/Stack.ts b/compiler/packages/babel-plugin-react-forget/src/Utils/Stack.ts index f387e907ab..d662794e86 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Utils/Stack.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Utils/Stack.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Utils/logger.ts b/compiler/packages/babel-plugin-react-forget/src/Utils/logger.ts index 96bb2c0c2b..125c291602 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Utils/logger.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Utils/logger.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Utils/todo.ts b/compiler/packages/babel-plugin-react-forget/src/Utils/todo.ts index e067691daa..444bf4ef99 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Utils/todo.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Utils/todo.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Utils/utils.ts b/compiler/packages/babel-plugin-react-forget/src/Utils/utils.ts index 8c1bc270b0..6377f0fa90 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Utils/utils.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Utils/utils.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateContextVariableLValues.ts b/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateContextVariableLValues.ts index 6b8ca1f774..11de9cba7b 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateContextVariableLValues.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateContextVariableLValues.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateHooksUsage.ts b/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateHooksUsage.ts index 579f69ca2e..65bb8fab86 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateHooksUsage.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateHooksUsage.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateMemoizedEffectDependencies.ts b/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateMemoizedEffectDependencies.ts index e0d18cc51e..45cde08add 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateMemoizedEffectDependencies.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateMemoizedEffectDependencies.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateNoCapitalizedCalls.ts b/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateNoCapitalizedCalls.ts index 5b3a67c8a6..17c156267d 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateNoCapitalizedCalls.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateNoCapitalizedCalls.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateNoRefAccesInRender.ts b/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateNoRefAccesInRender.ts index 031411ea7a..fcc71e1ca7 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateNoRefAccesInRender.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateNoRefAccesInRender.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateNoSetStateInRender.ts b/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateNoSetStateInRender.ts index a82dbc0c46..92fe6be2e0 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateNoSetStateInRender.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateNoSetStateInRender.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Validation/ValidatePreservedManualMemoization.ts b/compiler/packages/babel-plugin-react-forget/src/Validation/ValidatePreservedManualMemoization.ts index 0693fccdd1..ee1acaef69 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Validation/ValidatePreservedManualMemoization.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Validation/ValidatePreservedManualMemoization.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateUseMemo.ts b/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateUseMemo.ts index 5e7a40f972..cb0f072373 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateUseMemo.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Validation/ValidateUseMemo.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/Validation/index.ts b/compiler/packages/babel-plugin-react-forget/src/Validation/index.ts index f745b7f626..ff1ac32134 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Validation/index.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Validation/index.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/babel-plugin-react-forget/src/index.ts b/compiler/packages/babel-plugin-react-forget/src/index.ts index b5846161b7..4882d6ffdd 100644 --- a/compiler/packages/babel-plugin-react-forget/src/index.ts +++ b/compiler/packages/babel-plugin-react-forget/src/index.ts @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the diff --git a/compiler/packages/snap/src/runner-watch.ts b/compiler/packages/snap/src/runner-watch.ts index 2db3774bb7..6a229f5155 100644 --- a/compiler/packages/snap/src/runner-watch.ts +++ b/compiler/packages/snap/src/runner-watch.ts @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import watcher from "@parcel/watcher"; import path from "path"; import ts from "typescript"; diff --git a/compiler/packages/snap/src/sprout/ReactForgetFeatureFlag.ts b/compiler/packages/snap/src/sprout/ReactForgetFeatureFlag.ts index e6f87681b7..48b0abd180 100644 --- a/compiler/packages/snap/src/sprout/ReactForgetFeatureFlag.ts +++ b/compiler/packages/snap/src/sprout/ReactForgetFeatureFlag.ts @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + export function isForgetEnabled_Fixtures(): boolean { return true; } diff --git a/compiler/packages/snap/src/sprout/index.ts b/compiler/packages/snap/src/sprout/index.ts index 22960badb2..2e275e45d9 100644 --- a/compiler/packages/snap/src/sprout/index.ts +++ b/compiler/packages/snap/src/sprout/index.ts @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { EvaluatorResult, doEval } from "./evaluator"; export type SproutResult = diff --git a/compiler/packages/snap/src/types.d.ts b/compiler/packages/snap/src/types.d.ts index 39eebf1712..40771d183c 100644 --- a/compiler/packages/snap/src/types.d.ts +++ b/compiler/packages/snap/src/types.d.ts @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // v0.17.1 declare module "hermes-parser" { type HermesParserOptions = { diff --git a/compiler/scripts/build-packages-forget-feedback.sh b/compiler/scripts/build-packages-forget-feedback.sh index c99c133806..324777404b 100755 --- a/compiler/scripts/build-packages-forget-feedback.sh +++ b/compiler/scripts/build-packages-forget-feedback.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (c) Facebook, Inc. and its affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. diff --git a/compiler/scripts/copyright.js b/compiler/scripts/copyright.js index 2ef9870f3e..101d25c453 100644 --- a/compiler/scripts/copyright.js +++ b/compiler/scripts/copyright.js @@ -18,7 +18,7 @@ const META_COPYRIGHT_COMMENT_BLOCK = * LICENSE file in the root directory of this source tree. */`.trim() + "\n\n"; -const files = glob.sync("**/*.{js,ts,tsx,jsx}", { +const files = glob.sync("**/*.{js,ts,tsx,jsx,rs}", { ignore: [ "**/dist/**", "**/node_modules/**", diff --git a/compiler/scripts/hash.sh b/compiler/scripts/hash.sh index 89b55b9231..2d454af67d 100755 --- a/compiler/scripts/hash.sh +++ b/compiler/scripts/hash.sh @@ -1,4 +1,9 @@ #!/usr/bin/env bash +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + set -eo pipefail # Hashes JS files in the provided directory to create a cache-breaker diff --git a/compiler/scripts/rustfmt.sh b/compiler/scripts/rustfmt.sh index 1d0a040231..2fb09ae324 100755 --- a/compiler/scripts/rustfmt.sh +++ b/compiler/scripts/rustfmt.sh @@ -1,7 +1,12 @@ #!/usr/bin/env bash +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + set -eo pipefail # Executes rustfmt using a nightly build of the compiler # NOTE: this command must exactly match the Rust Lint command in .github/workflows/rust.yml rustup toolchain list | grep -q nightly-2023-08-01 || (echo "Expected Rust version missing, try running: 'rustup toolchain install nightly-2023-08-01'" && exit 1) -grep -r --include "*.rs" --files-without-match "@generated" crates | xargs rustup run nightly-2023-08-01 rustfmt --config="skip_children=true" "$@" \ No newline at end of file +grep -r --include "*.rs" --files-without-match "@generated" crates | xargs rustup run nightly-2023-08-01 rustfmt --config="skip_children=true" "$@" diff --git a/compiler/scripts/update-commit-message.js b/compiler/scripts/update-commit-message.js index 4fe2e0a322..ad585a1f12 100644 --- a/compiler/scripts/update-commit-message.js +++ b/compiler/scripts/update-commit-message.js @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the