@samitouri / QOS-React-1 / commits / ad09027c16

[compiler] Add missing copyrights (#33004)

`yarn copyright`

lauren committed Apr 23, 2025 at 22:04 UTC ad09027c161f1ce5d9b07bfcfb4ee4fb92444655
32 files changed +210
compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Reanimated.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 import type * as BabelCore from '@babel/core';
9 import {hasOwnProperty} from '../Utils/utils';
10 import {PluginOptions} from './Options';
compiler/packages/babel-plugin-react-compiler/src/Entrypoint/ValidateNoUntransformedReferences.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 import {NodePath} from '@babel/core';
9 import * as t from '@babel/types';
10
compiler/packages/babel-plugin-react-compiler/src/HIR/AssertValidBlockNesting.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 import {CompilerError} from '..';
9 import {
10 BlockId,
compiler/packages/babel-plugin-react-compiler/src/HIR/BuildReactiveScopeTerminalsHIR.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 import {CompilerError} from '../CompilerError';
9 import {getScopes, recursivelyTraverseItems} from './AssertValidBlockNesting';
10 import {Environment} from './Environment';
compiler/packages/babel-plugin-react-compiler/src/HIR/CollectHoistablePropertyLoads.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 import {CompilerError} from '../CompilerError';
9 import {inRange} from '../ReactiveScopes/InferReactiveScopeVariables';
10 import {printDependency} from '../ReactiveScopes/PrintReactiveFunction';
compiler/packages/babel-plugin-react-compiler/src/HIR/CollectOptionalChainDependencies.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 import {CompilerError} from '..';
9 import {assertNonNull} from './CollectHoistablePropertyLoads';
10 import {
compiler/packages/babel-plugin-react-compiler/src/HIR/MergeOverlappingReactiveScopesHIR.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 import {
9 HIRFunction,
10 InstructionId,
compiler/packages/babel-plugin-react-compiler/src/HIR/PropagateScopeDependenciesHIR.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 import {
9 ScopeId,
10 HIRFunction,
compiler/packages/babel-plugin-react-compiler/src/HIR/PruneUnusedLabelsHIR.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 import {CompilerError} from '..';
9 import {BlockId, GotoVariant, HIRFunction} from './HIR';
10
compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/StabilizeBlockIds.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 import {
9 BlockId,
10 ReactiveFunction,
compiler/packages/babel-plugin-react-compiler/src/Transform/index.ts
+1
@@ -4,4 +4,5 @@
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7 +
8 export {transformFire} from './TransformFire';
compiler/packages/babel-plugin-react-compiler/src/Validation/ValidateNoCapitalizedCalls.ts
+1
@@ -4,6 +4,7 @@
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7 +
8 import {CompilerError, EnvironmentConfig, ErrorSeverity} from '..';
9 import {HIRFunction, IdentifierId} from '../HIR';
10 import {DEFAULT_GLOBALS} from '../HIR/Globals';
compiler/packages/babel-plugin-react-compiler/tsup.config.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 import {defineConfig} from 'tsup';
9
10 export default defineConfig({
compiler/packages/eslint-plugin-react-compiler/tsup.config.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 import {defineConfig} from 'tsup';
9
10 export default defineConfig({
compiler/packages/make-read-only-util/tsup.config.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 import {defineConfig} from 'tsup';
9
10 export default defineConfig({
compiler/packages/react-compiler-healthcheck/src/config.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 export const config = {
9 knownIncompatibleLibraries: [
10 'mobx-react',
compiler/packages/react-compiler-healthcheck/tsup.config.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 import {defineConfig} from 'tsup';
9
10 export default defineConfig({
compiler/packages/react-compiler-runtime/tsup.config.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 import {defineConfig} from 'tsup';
9
10 export default defineConfig({
compiler/packages/react-forgive/client/src/autodeps.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 import * as vscode from 'vscode';
9 import {
10 LanguageClient,
compiler/packages/react-forgive/client/src/colors.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 type RGB = [number, number, number];
9
10 const int = Math.floor;
compiler/packages/react-forgive/client/src/extension.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 import * as path from 'path';
9 import * as vscode from 'vscode';
10
compiler/packages/react-forgive/client/src/mapping.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 import * as vscode from 'vscode';
9 import {Position} from 'vscode-languageclient/node';
10
compiler/packages/react-forgive/server/src/compiler/compat.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 import {SourceLocation} from 'babel-plugin-react-compiler/src';
9 import {type Range} from 'vscode-languageserver';
10
compiler/packages/react-forgive/server/src/requests/autodepsdecorations.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 import {type AutoDepsDecorationsEvent} from 'babel-plugin-react-compiler/src/Entrypoint';
9 import {type Position} from 'vscode-languageserver-textdocument';
10 import {RequestType} from 'vscode-languageserver/node';
compiler/packages/react-forgive/server/src/utils/range.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 import * as t from '@babel/types';
9 import {type Position} from 'vscode-languageserver/node';
10
compiler/packages/react-mcp-server/src/types/algolia.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 // https://github.com/algolia/docsearch/blob/15ebcba606b281aa0dddc4ccb8feb19d396bf79e/packages/docsearch-react/src/types/DocSearchHit.ts
9 type ContentType =
10 | 'content'
compiler/packages/react-mcp-server/tsup.config.ts
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 import {defineConfig} from 'tsup';
9
10 export default defineConfig({
compiler/scripts/release/prompt-for-otp.js
+6
@@ -1,4 +1,10 @@
1 #!/usr/bin/env node
2 +/**
3 + * Copyright (c) Meta Platforms, Inc. and affiliates.
4 + *
5 + * This source code is licensed under the MIT license found in the
6 + * LICENSE file in the root directory of this source tree.
7 + */
8
9 const prompt = require('prompt-promise');
10
compiler/scripts/release/publish.js
+6
@@ -1,4 +1,10 @@
1 #!/usr/bin/env node
2 +/**
3 + * Copyright (c) Meta Platforms, Inc. and affiliates.
4 + *
5 + * This source code is licensed under the MIT license found in the
6 + * LICENSE file in the root directory of this source tree.
7 + */
8
9 'use strict';
10
compiler/scripts/release/shared/build-packages.js
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 const ora = require('ora');
9 const {execHelper} = require('./utils');
10
compiler/scripts/release/shared/packages.js
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 const PUBLISHABLE_PACKAGES = [
9 'babel-plugin-react-compiler',
10 'eslint-plugin-react-compiler',
compiler/scripts/release/shared/utils.js
+7
@@ -1,3 +1,10 @@
1 +/**
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 const cp = require('child_process');
9 const util = require('util');
10