From b63948c0fb42f7e8dfb5f69ca3fdc838c3157e46 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Sat, 15 Jul 2023 10:59:46 -0700 Subject: [PATCH] Enable licenselint Summary: ``` arc lint --apply-patches --take LICENSELINT --paths-cmd 'hg files common/hs' ``` Reviewed By: zertosh Differential Revision: D47467990 fbshipit-source-id: 6481068bbb96f48ce6db7dab6a3d6105265e4040 --- .github/workflows/get_deps_tag.sh | 5 + build.sh | 5 + common/github/Facebook/Init.hs | 8 +- common/github/TestRunner.hs | 8 +- common/mangle/Main.hs | 8 +- common/mangle/Mangle.hs | 8 +- common/mangle/Mangle/TH.hs | 8 +- common/mangle/hsc.h | 8 +- common/mangle/tests/Test.hs | 8 +- common/util/Control/Concurrent/Stream.hs | 8 +- common/util/Data/MovingAverageRateLimiter.hs | 8 +- common/util/Data/RateLimiterMap.hs | 8 +- common/util/Foreign/CPP/Addressable.hs | 8 +- common/util/Foreign/CPP/Dynamic.hsc | 8 +- common/util/Foreign/CPP/HsStruct.hs | 8 +- common/util/Foreign/CPP/HsStruct/HsArray.hs | 8 +- common/util/Foreign/CPP/HsStruct/HsMap.hs | 9 +- common/util/Foreign/CPP/HsStruct/HsOption.hs | 8 +- common/util/Foreign/CPP/HsStruct/HsSet.hs | 9 +- .../util/Foreign/CPP/HsStruct/HsStdTuple.hs | 8 +- .../util/Foreign/CPP/HsStruct/HsStdVariant.hs | 8 +- common/util/Foreign/CPP/HsStruct/Types.hsc | 8 +- common/util/Foreign/CPP/HsStruct/Unsafe.hsc | 8 +- common/util/Foreign/CPP/HsStruct/Utils.hs | 8 +- common/util/Foreign/CPP/Marshallable.hs | 8 +- common/util/Foreign/CPP/Marshallable/TH.hs | 8 +- common/util/Util/ASan.hs | 8 +- common/util/Util/Aeson.hs | 8 +- common/util/Util/AllocLimit.hs | 8 +- common/util/Util/Applicative.hs | 8 +- common/util/Util/AsanAlloc.cpp | 8 +- common/util/Util/AsanAlloc.h | 8 +- common/util/Util/Async.hs | 8 +- common/util/Util/Bag.hs | 8 +- common/util/Util/Binary/Parser.hs | 8 +- common/util/Util/Bits.hs | 8 +- common/util/Util/Buffer.hs | 8 +- common/util/Util/Build.hs | 8 +- common/util/Util/ByteString.hs | 8 +- common/util/Util/Concurrent.hs | 8 +- common/util/Util/Control/Exception.hs | 8 +- common/util/Util/Control/Monad.hs | 8 +- common/util/Util/Defer.hs | 8 +- common/util/Util/Directory.hs | 8 +- common/util/Util/Dll.hs | 8 +- common/util/Util/Encoding.hs | 8 +- common/util/Util/Err.hs | 8 +- common/util/Util/EventBase.hs | 8 +- common/util/Util/Executor.hs | 8 +- common/util/Util/Fd.hs | 8 +- common/util/Util/FilePath.hs | 8 +- common/util/Util/Function.hs | 8 +- common/util/Util/GFlags.cpp | 8 +- common/util/Util/GFlags.hs | 8 +- common/util/Util/Graph.hs | 8 +- common/util/Util/HSE.hs | 8 +- common/util/Util/HUnit.hs | 8 +- common/util/Util/HashMap/Strict.hs | 8 +- common/util/Util/IO.hs | 8 +- common/util/Util/IOBuf.hsc | 8 +- common/util/Util/JSON/Pretty.hs | 8 +- common/util/Util/Lens.hs | 8 +- common/util/Util/Linter.hs | 8 +- common/util/Util/List.hs | 8 +- common/util/Util/List/HigherOrder.hs | 8 +- common/util/Util/Log.hs | 8 +- common/util/Util/Log/Internal.hs | 8 +- common/util/Util/Log/String.hs | 8 +- common/util/Util/Log/Text.hs | 8 +- common/util/Util/LogIfSlow.hs | 8 +- common/util/Util/Logger.hs | 8 +- common/util/Util/MD5.hs | 8 +- common/util/Util/Memory.hs | 8 +- common/util/Util/Monoid.hs | 8 +- common/util/Util/Network.hsc | 8 +- common/util/Util/OptParse.hs | 8 +- common/util/Util/Predicate.hs | 8 +- common/util/Util/PrettyPrint.hs | 8 +- common/util/Util/RWVar.hs | 8 +- common/util/Util/Reader.hs | 8 +- common/util/Util/RequestContext.hs | 9 +- common/util/Util/STM.hs | 8 +- common/util/Util/Show.hs | 8 +- common/util/Util/String.hs | 8 +- common/util/Util/String/Quasi.hs | 8 +- common/util/Util/Testing.hs | 8 +- common/util/Util/Text.hs | 8 +- common/util/Util/TimeSec.hs | 8 +- common/util/Util/Timing.hs | 8 +- common/util/Util/ToExp.hs | 8 +- common/util/Util/Typeable.hs | 8 +- common/util/Util/WBVar.hs | 8 +- common/util/cpp/Constructible.h | 8 +- common/util/cpp/Destructible.h | 8 +- common/util/cpp/EventBaseDataplane.cpp | 8 +- common/util/cpp/Executor.cpp | 8 +- common/util/cpp/HsOption.h | 8 +- common/util/cpp/HsStdTuple.h | 8 +- common/util/cpp/HsStdVariant.h | 8 +- common/util/cpp/HsStruct.cpp | 8 +- common/util/cpp/HsStruct.h | 8 +- common/util/cpp/HsStructDefines.h | 8 +- common/util/cpp/HsVariant.h | 8 +- common/util/cpp/IOBuf.cpp | 8 +- common/util/cpp/IOBuf.h | 8 +- common/util/cpp/Marshallable.h | 8 +- common/util/cpp/RequestContext.cpp | 8 + common/util/cpp/RequestContext.h | 8 + common/util/cpp/cdynamic.cpp | 8 +- common/util/cpp/cdynamic.h | 8 +- common/util/cpp/logging.cpp | 8 +- common/util/cpp/logging.h | 8 +- common/util/hsc.h | 8 +- common/util/tests/AesonTest.hs | 8 +- common/util/tests/AllocLimitTest.hs | 8 +- common/util/tests/AsyncTest.hs | 8 +- common/util/tests/BufferTest.hs | 8 +- common/util/tests/ConcurrentTest.hs | 8 +- common/util/tests/Control/MonadTest.hs | 8 +- common/util/tests/ControlExceptionTest.hs | 8 +- common/util/tests/DynamicBench.hs | 8 +- common/util/tests/DynamicHelper.cpp | 8 +- common/util/tests/DynamicHelper.h | 8 +- common/util/tests/DynamicTest.hs | 8 +- common/util/tests/ExceptionTest.hs | 8 +- common/util/tests/FilePathTest.hs | 8 +- common/util/tests/GFlagsTest.cpp | 8 +- common/util/tests/GFlagsTest.hs | 8 +- common/util/tests/GraphTest.hs | 8 +- common/util/tests/HsStructHelper.cpp | 8 +- common/util/tests/HsStructHelper.h | 8 +- common/util/tests/HsStructTest.hs | 8 +- common/util/tests/HsStructTestTypes.hsc | 8 +- common/util/tests/IOBufTest.cpp | 8 +- common/util/tests/IOBufTest.hs | 8 +- common/util/tests/IOTest.hs | 8 +- common/util/tests/JSONPrettyTest.hs | 8 +- common/util/tests/LensTest.hs | 8 +- common/util/tests/ListTest.hs | 8 +- common/util/tests/LogTest.hs | 8 +- common/util/tests/LogTest/Explicit.hs | 8 +- common/util/tests/LogTest/MonadStack.hs | 8 +- .../util/tests/LogTest/OverloadedStrings.hs | 8 +- common/util/tests/MD5Test.hs | 8 +- .../tests/MovingAverageRateLimiterTest.hs | 8 +- common/util/tests/OptParseTest.hs | 8 +- common/util/tests/RWVarTest.hs | 8 +- common/util/tests/RateLimiterMapTest.hs | 8 +- common/util/tests/RegexTest.hs | 8 +- common/util/tests/RequestContextTest.hs | 8 + common/util/tests/RequestContextTestHelper.hs | 8 + common/util/tests/StreamTest.hs | 8 +- common/util/tests/StringQuasiTest.hs | 8 +- common/util/tests/THTest.hs | 8 +- common/util/tests/TimeSecTest.hs | 8 +- common/util/tests/ToExpTest.hs | 8 +- common/util/tests/UnitTests.hs | 8 +- common/util/tests/cpp/RequestContextTest.cpp | 8 + common/util/tests/github/SpecRunner.hs | 8 +- compiler/Thrift/Compiler.hs | 8 +- compiler/Thrift/Compiler/GenClient.hs | 8 +- compiler/Thrift/Compiler/GenConst.hs | 8 +- compiler/Thrift/Compiler/GenEnum.hs | 8 +- compiler/Thrift/Compiler/GenFunction.hs | 8 +- compiler/Thrift/Compiler/GenHaskell.hs | 8 +- compiler/Thrift/Compiler/GenJSON.hs | 8 +- compiler/Thrift/Compiler/GenJSONLoc.hs | 8 +- compiler/Thrift/Compiler/GenService.hs | 8 +- compiler/Thrift/Compiler/GenStruct.hs | 8 +- compiler/Thrift/Compiler/GenTypedef.hs | 8 +- compiler/Thrift/Compiler/GenUnion.hs | 8 +- compiler/Thrift/Compiler/GenUtils.hs | 8 +- compiler/Thrift/Compiler/OptParse.hs | 8 +- compiler/Thrift/Compiler/Options.hs | 8 +- compiler/Thrift/Compiler/Plugin.hs | 8 +- compiler/Thrift/Compiler/Pretty.hs | 8 +- compiler/Thrift/Compiler/Typechecker.hs | 8 +- compiler/Thrift/Compiler/Typechecker/Monad.hs | 8 +- compiler/Thrift/Compiler/Types.hs | 8 +- compiler/main/Main.hs | 8 +- .../Thrift/Compiler/Plugins/Haskell.hs | 8 +- .../plugins/Thrift/Compiler/Plugins/Linter.hs | 8 +- compiler/test/DummyBinaryForBuild.hs | 9 +- compiler/test/InstallFixtures.hs | 8 +- compiler/test/TestFixtures.hs | 8 +- compiler/test/fixtures/gen-basic-loc/a.ast | 26 +- compiler/test/fixtures/gen-basic-loc/b.ast | 338 ++++++++-------- .../test/fixtures/gen-single-out-loc/a.ast | 364 +++++++++--------- compiler/test/genjsonloc-contains.sh | 7 +- compiler/test/github/Util.hs | 8 +- compiler/test/if/b.thrift | 8 +- compiler/test/if/c.thrift | 8 +- compiler/test/if/d.thrift | 8 +- compiler/test/if/f.thrift | 8 +- cpp-channel/Thrift/Channel/HeaderChannel.hs | 8 +- cpp-channel/Thrift/Channel/Lib/CppChannel.hsc | 8 +- .../Thrift/Channel/Lib/HeaderChannel.hs | 8 +- cpp-channel/cpp/HeaderChannel.cpp | 8 +- cpp-channel/cpp/HsChannel.cpp | 8 +- cpp-channel/cpp/HsChannel.h | 8 +- cpp-channel/test/CompactBench.cpp | 8 +- cpp-channel/test/CompactBench.hs | 8 +- cpp-channel/test/HeaderChannelTest.hs | 8 +- cpp-channel/test/LifetimeTest.hs | 8 +- cpp-channel/test/MathServer.cpp | 8 +- exactprint/Thrift/ExactPrint/Codemod.hs | 8 +- exactprint/Thrift/ExactPrint/Convert.hs | 8 +- exactprint/Thrift/ExactPrint/PrettyPrint.hs | 8 +- exactprint/Thrift/ExactPrint/Types.hs | 8 +- exactprint/tests/CodemodTest.hs | 8 +- exactprint/tests/RoundTripTest.hs | 8 +- exactprint/tests/sync-fbthrift-tests.sh | 7 +- haxl/Haxl/DataSource/Thrift.hs | 8 +- http/Thrift/Channel/HTTP.hs | 8 + http/Thrift/Server/HTTP.hs | 8 + http/test/ServerTest.hs | 8 +- http/test/common/CalculatorHandler.hs | 8 +- http/test/common/EchoHandler.hs | 8 +- lib/Thrift/Api.hs | 8 +- lib/Thrift/Binary/Parser.hs | 8 +- lib/Thrift/Channel.hs | 8 +- lib/Thrift/Channel/SocketChannel.hs | 8 +- lib/Thrift/Channel/SocketChannel/Server.hs | 8 +- lib/Thrift/Codegen.hs | 8 +- lib/Thrift/CodegenTypesOnly.hs | 8 +- lib/Thrift/HasFields.hs | 8 +- lib/Thrift/Monad.hsc | 8 +- lib/Thrift/Processor.hs | 8 +- lib/Thrift/Protocol.hs | 8 +- lib/Thrift/Protocol/Binary.hs | 8 +- lib/Thrift/Protocol/Binary/Internal.hs | 8 +- lib/Thrift/Protocol/Compact.hs | 8 +- lib/Thrift/Protocol/Id.hs | 8 +- lib/Thrift/Protocol/JSON.hs | 8 +- lib/Thrift/Protocol/JSON/Base64.hs | 8 +- lib/Thrift/Protocol/JSON/String.hs | 8 +- lib/Thrift/Util.hs | 8 +- lib/if/ApplicationException.thrift | 8 +- lib/if/RpcOptions.thrift | 8 +- lib/test/BinaryParserTest.hs | 8 +- lib/test/ChannelTest.hs | 8 +- lib/test/ClientTest.hs | 8 +- lib/test/IOBufBench.cpp | 8 +- lib/test/IOBufBench.hs | 8 +- lib/test/JSONNullTest.hs | 8 +- lib/test/JSONNumTest.hs | 8 +- lib/test/JSONStringTest.hs | 8 +- lib/test/SocketChannelTest.hs | 8 +- lib/test/helpers/Network.hs | 8 +- lib/test/helpers/TestChannel.hs | 8 +- lib/test/if/echoer.thrift | 8 +- lib/test/if/math.thrift | 8 +- lib/test/lib/TestCommon.hs | 8 +- new_install_deps.sh | 7 +- serialization/ThriftSerializers.h | 8 +- server/Thrift/Server/CppServer.hs | 8 +- server/Thrift/Server/ProcessorCallback.hsc | 8 +- server/Thrift/Server/Types.hs | 8 +- server/cpp/CppServer.cpp | 8 +- server/cpp/CppServer.h | 8 +- server/cpp/HaskellProcessor.cpp | 8 +- server/cpp/HaskellProcessor.h | 8 +- server/test/DanglingPointerTest.hs | 8 +- server/test/HandlerTest.hs | 8 +- server/test/HaskellProcessorTest.cpp | 8 +- server/test/ServerTest.hs | 8 +- server/test/common/CalculatorHandler.hs | 8 +- server/test/common/EchoHandler.hs | 8 +- server/test/if/hash_map.thrift | 8 +- tests/AddPrefixTest.hs | 8 +- tests/BinaryProtocolTest.hs | 8 +- tests/ConstGenTest.hs | 8 +- tests/ConstParserTest.hs | 8 +- tests/ConstTest.hs | 8 +- tests/DuplicateNamesTest.hs | 8 +- tests/EnumConstTest.hs | 8 +- tests/EnumTest.hs | 8 +- tests/ExceptionTest.hs | 8 +- tests/FlagsTest.hs | 8 +- tests/HasFieldTest.hs | 8 +- tests/IncludesTest.hs | 8 +- tests/InputCheckingTest.hs | 8 +- tests/InstancesTest.hs | 8 +- tests/IntegrationTest.hs | 8 +- tests/InteractionsTest.hs | 8 + tests/InterfaceTest.hs | 8 +- tests/JSONTest.hs | 8 +- tests/LexerTest.hs | 8 +- tests/MapTest.hs | 8 +- tests/MessageTest.hs | 8 +- tests/MessedUpCaseTest.hs | 8 +- tests/NamespaceTest.hs | 8 +- tests/ParensTest.hs | 8 +- tests/ParserTest.hs | 8 +- tests/PseudoThriftEnumTest.hs | 8 +- tests/RecursiveTest.hs | 8 +- tests/RequiredSymbolsTest.hs | 8 +- tests/ScopedEnumsTest.hs | 8 +- tests/ServiceTest.hs | 8 +- tests/TransitiveIncludeTest.hs | 8 +- tests/TypecheckerTest.hs | 8 +- tests/TypecheckerTestLenient.hs | 8 +- tests/cpp/hs_test.cpp | 8 +- tests/cpp/hs_test.h | 8 +- tests/cpp/messages.cpp | 8 +- tests/cpp/messages.h | 8 +- tests/if/A.thrift | 8 +- tests/if/B.thrift | 8 +- tests/if/C.thrift | 8 +- tests/if/D.thrift | 8 +- tests/if/E.thrift | 8 +- tests/if/EnumConst.thrift | 8 +- tests/if/bar.thrift | 8 +- tests/if/baz.thrift | 8 +- tests/if/constants.thrift | 8 +- tests/if/duplicate.thrift | 8 +- tests/if/enum.thrift | 8 +- tests/if/exception.thrift | 8 +- tests/if/flags.thrift | 8 +- tests/if/foo.thrift | 8 +- tests/if/hasfield.thrift | 8 +- tests/if/hs_prefix.thrift | 8 +- tests/if/hs_test.thrift | 8 +- tests/if/map.thrift | 8 +- tests/if/messed_up_case.thrift | 8 +- tests/if/monoid.thrift | 8 +- tests/if/namespace.thrift | 8 +- tests/if/namespace_included.thrift | 8 +- tests/if/package.thrift | 8 +- tests/if/parens.thrift | 8 +- tests/if/pseudoenum.thrift | 8 +- tests/if/scoped_enums.thrift | 8 +- tests/if/service.thrift | 8 +- tests/if/typedef_annotation.thrift | 8 +- tests/if/versions.thrift | 8 +- 335 files changed, 2690 insertions(+), 689 deletions(-) diff --git a/.github/workflows/get_deps_tag.sh b/.github/workflows/get_deps_tag.sh index 81308a0f..cb466ad6 100755 --- a/.github/workflows/get_deps_tag.sh +++ b/.github/workflows/get_deps_tag.sh @@ -1,4 +1,9 @@ #!/usr/bin/env sh +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. +# +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. git clone https://github.com/facebook/wangle.git tmp >& /dev/null cd tmp && git tag | sort -r | head -1 && cd .. diff --git a/build.sh b/build.sh index b2d6f12a..07b1b2e6 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,9 @@ #!/usr/bin/env bash +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. +# +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}") GETDEPS_PATHS=( diff --git a/common/github/Facebook/Init.hs b/common/github/Facebook/Init.hs index 1eeb613f..5fa9a614 100644 --- a/common/github/Facebook/Init.hs +++ b/common/github/Facebook/Init.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Facebook.Init where diff --git a/common/github/TestRunner.hs b/common/github/TestRunner.hs index cab78de7..a169b41d 100644 --- a/common/github/TestRunner.hs +++ b/common/github/TestRunner.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module TestRunner (module TestRunner) where diff --git a/common/mangle/Main.hs b/common/mangle/Main.hs index ec5d5feb..e39eae62 100644 --- a/common/mangle/Main.hs +++ b/common/mangle/Main.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Main (main) where diff --git a/common/mangle/Mangle.hs b/common/mangle/Mangle.hs index 8f97fdeb..38da0f9d 100644 --- a/common/mangle/Mangle.hs +++ b/common/mangle/Mangle.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE ViewPatterns #-} diff --git a/common/mangle/Mangle/TH.hs b/common/mangle/Mangle/TH.hs index c167ca19..e9fb5370 100644 --- a/common/mangle/Mangle/TH.hs +++ b/common/mangle/Mangle/TH.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Mangle.TH ( mangle ) where diff --git a/common/mangle/hsc.h b/common/mangle/hsc.h index 33814e55..83db427f 100644 --- a/common/mangle/hsc.h +++ b/common/mangle/hsc.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #pragma once diff --git a/common/mangle/tests/Test.hs b/common/mangle/tests/Test.hs index 36e72212..10401c38 100644 --- a/common/mangle/tests/Test.hs +++ b/common/mangle/tests/Test.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Test where diff --git a/common/util/Control/Concurrent/Stream.hs b/common/util/Control/Concurrent/Stream.hs index d31516f9..9302a861 100644 --- a/common/util/Control/Concurrent/Stream.hs +++ b/common/util/Control/Concurrent/Stream.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} -- | Higher level concurrency facilities for multiple workers concurrently -- over a streaming source of input diff --git a/common/util/Data/MovingAverageRateLimiter.hs b/common/util/Data/MovingAverageRateLimiter.hs index 3531d7b8..d59aff38 100644 --- a/common/util/Data/MovingAverageRateLimiter.hs +++ b/common/util/Data/MovingAverageRateLimiter.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {- | A standalone rate limiter that accepts some fluctuations in the traffic. diff --git a/common/util/Data/RateLimiterMap.hs b/common/util/Data/RateLimiterMap.hs index 55d7ac9b..1ecf2a4b 100644 --- a/common/util/Data/RateLimiterMap.hs +++ b/common/util/Data/RateLimiterMap.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE CPP #-} module Data.RateLimiterMap diff --git a/common/util/Foreign/CPP/Addressable.hs b/common/util/Foreign/CPP/Addressable.hs index 33bb0f11..4d6965eb 100644 --- a/common/util/Foreign/CPP/Addressable.hs +++ b/common/util/Foreign/CPP/Addressable.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE DefaultSignatures #-} module Foreign.CPP.Addressable diff --git a/common/util/Foreign/CPP/Dynamic.hsc b/common/util/Foreign/CPP/Dynamic.hsc index eb7aeb8b..006c5e1f 100644 --- a/common/util/Foreign/CPP/Dynamic.hsc +++ b/common/util/Foreign/CPP/Dynamic.hsc @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} -- -- Marshal folly::dynamic directly into Haskell's Data.Aeson, diff --git a/common/util/Foreign/CPP/HsStruct.hs b/common/util/Foreign/CPP/HsStruct.hs index fe2aae1f..c41c272d 100644 --- a/common/util/Foreign/CPP/HsStruct.hs +++ b/common/util/Foreign/CPP/HsStruct.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Foreign.CPP.HsStruct ( coerce diff --git a/common/util/Foreign/CPP/HsStruct/HsArray.hs b/common/util/Foreign/CPP/HsStruct/HsArray.hs index 71d4c5ab..b4f397ef 100644 --- a/common/util/Foreign/CPP/HsStruct/HsArray.hs +++ b/common/util/Foreign/CPP/HsStruct/HsArray.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE TemplateHaskell #-} module Foreign.CPP.HsStruct.HsArray diff --git a/common/util/Foreign/CPP/HsStruct/HsMap.hs b/common/util/Foreign/CPP/HsStruct/HsMap.hs index 2521bec7..6c17f300 100644 --- a/common/util/Foreign/CPP/HsStruct/HsMap.hs +++ b/common/util/Foreign/CPP/HsStruct/HsMap.hs @@ -1,4 +1,11 @@ --- (c) Facebook, Inc. and its affiliates. Confidential and proprietary. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} + {-# LANGUAGE TemplateHaskell #-} module Foreign.CPP.HsStruct.HsMap ( diff --git a/common/util/Foreign/CPP/HsStruct/HsOption.hs b/common/util/Foreign/CPP/HsStruct/HsOption.hs index 15db15fe..61c9a547 100644 --- a/common/util/Foreign/CPP/HsStruct/HsOption.hs +++ b/common/util/Foreign/CPP/HsStruct/HsOption.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE TemplateHaskell #-} module Foreign.CPP.HsStruct.HsOption diff --git a/common/util/Foreign/CPP/HsStruct/HsSet.hs b/common/util/Foreign/CPP/HsStruct/HsSet.hs index 86c57f2e..0139fec2 100644 --- a/common/util/Foreign/CPP/HsStruct/HsSet.hs +++ b/common/util/Foreign/CPP/HsStruct/HsSet.hs @@ -1,4 +1,11 @@ --- (c) Facebook, Inc. and its affiliates. Confidential and proprietary. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} + {-# LANGUAGE TemplateHaskell #-} module Foreign.CPP.HsStruct.HsSet ( diff --git a/common/util/Foreign/CPP/HsStruct/HsStdTuple.hs b/common/util/Foreign/CPP/HsStruct/HsStdTuple.hs index fe8b817b..20a457f8 100644 --- a/common/util/Foreign/CPP/HsStruct/HsStdTuple.hs +++ b/common/util/Foreign/CPP/HsStruct/HsStdTuple.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE TemplateHaskell #-} module Foreign.CPP.HsStruct.HsStdTuple diff --git a/common/util/Foreign/CPP/HsStruct/HsStdVariant.hs b/common/util/Foreign/CPP/HsStruct/HsStdVariant.hs index b6d9da5b..8f9531fa 100644 --- a/common/util/Foreign/CPP/HsStruct/HsStdVariant.hs +++ b/common/util/Foreign/CPP/HsStruct/HsStdVariant.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE TemplateHaskell #-} diff --git a/common/util/Foreign/CPP/HsStruct/Types.hsc b/common/util/Foreign/CPP/HsStruct/Types.hsc index 819e5567..8c326e5a 100644 --- a/common/util/Foreign/CPP/HsStruct/Types.hsc +++ b/common/util/Foreign/CPP/HsStruct/Types.hsc @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE TemplateHaskell #-} diff --git a/common/util/Foreign/CPP/HsStruct/Unsafe.hsc b/common/util/Foreign/CPP/HsStruct/Unsafe.hsc index 7adede76..6e507f5a 100644 --- a/common/util/Foreign/CPP/HsStruct/Unsafe.hsc +++ b/common/util/Foreign/CPP/HsStruct/Unsafe.hsc @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Foreign.CPP.HsStruct.Unsafe ( unsafeMaybeRelease diff --git a/common/util/Foreign/CPP/HsStruct/Utils.hs b/common/util/Foreign/CPP/HsStruct/Utils.hs index fc4ceb35..a5b103c6 100644 --- a/common/util/Foreign/CPP/HsStruct/Utils.hs +++ b/common/util/Foreign/CPP/HsStruct/Utils.hs @@ -1,4 +1,10 @@ --- Copyright 2004-present Facebook. All Rights Reserved. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Foreign.CPP.HsStruct.Utils ( withCxxObject diff --git a/common/util/Foreign/CPP/Marshallable.hs b/common/util/Foreign/CPP/Marshallable.hs index c1d6e816..9bcb2705 100644 --- a/common/util/Foreign/CPP/Marshallable.hs +++ b/common/util/Foreign/CPP/Marshallable.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE DefaultSignatures #-} module Foreign.CPP.Marshallable diff --git a/common/util/Foreign/CPP/Marshallable/TH.hs b/common/util/Foreign/CPP/Marshallable/TH.hs index 1edf3847..ac85f526 100644 --- a/common/util/Foreign/CPP/Marshallable/TH.hs +++ b/common/util/Foreign/CPP/Marshallable/TH.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {- | This module provides facilities to auto generate instances for diff --git a/common/util/Util/ASan.hs b/common/util/Util/ASan.hs index dd756c14..0e8ad06d 100644 --- a/common/util/Util/ASan.hs +++ b/common/util/Util/ASan.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.ASan ( alloca diff --git a/common/util/Util/Aeson.hs b/common/util/Util/Aeson.hs index 0b0f854f..627b4e8f 100644 --- a/common/util/Util/Aeson.hs +++ b/common/util/Util/Aeson.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} -- FromJSON instance below is an orphan (deliberately) {-# OPTIONS_GHC -Wno-orphans #-} diff --git a/common/util/Util/AllocLimit.hs b/common/util/Util/AllocLimit.hs index 11a8790d..f04edfe3 100644 --- a/common/util/Util/AllocLimit.hs +++ b/common/util/Util/AllocLimit.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} diff --git a/common/util/Util/Applicative.hs b/common/util/Util/Applicative.hs index a621c54c..32f9b3b0 100644 --- a/common/util/Util/Applicative.hs +++ b/common/util/Util/Applicative.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.Applicative ( concatMapM diff --git a/common/util/Util/AsanAlloc.cpp b/common/util/Util/AsanAlloc.cpp index b463dc80..bcb3fcb7 100644 --- a/common/util/Util/AsanAlloc.cpp +++ b/common/util/Util/AsanAlloc.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include "Util/AsanAlloc.h" diff --git a/common/util/Util/AsanAlloc.h b/common/util/Util/AsanAlloc.h index b3e9b83d..e9f4b9b9 100644 --- a/common/util/Util/AsanAlloc.h +++ b/common/util/Util/AsanAlloc.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #pragma once diff --git a/common/util/Util/Async.hs b/common/util/Util/Async.hs index e5308489..ce88bd01 100644 --- a/common/util/Util/Async.hs +++ b/common/util/Util/Async.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} -- | This module provides some higher level concurrency facilities module Util.Async diff --git a/common/util/Util/Bag.hs b/common/util/Util/Bag.hs index 981e469b..47ad12e7 100644 --- a/common/util/Util/Bag.hs +++ b/common/util/Util/Bag.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.Bag ( Bag -- Do not export constructors. diff --git a/common/util/Util/Binary/Parser.hs b/common/util/Util/Binary/Parser.hs index 9d265d40..ab19c59d 100644 --- a/common/util/Util/Binary/Parser.hs +++ b/common/util/Util/Binary/Parser.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE CPP #-} {-# LANGUAGE MagicHash #-} diff --git a/common/util/Util/Bits.hs b/common/util/Util/Bits.hs index 13989c3f..a7e07e41 100644 --- a/common/util/Util/Bits.hs +++ b/common/util/Util/Bits.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE MagicHash #-} module Util.Bits (bitLength) where diff --git a/common/util/Util/Buffer.hs b/common/util/Util/Buffer.hs index 58db9283..58c2123c 100644 --- a/common/util/Util/Buffer.hs +++ b/common/util/Util/Buffer.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE CPP #-} {-# LANGUAGE MagicHash #-} diff --git a/common/util/Util/Build.hs b/common/util/Util/Build.hs index 774ede79..d2920445 100644 --- a/common/util/Util/Build.hs +++ b/common/util/Util/Build.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.Build ( Build diff --git a/common/util/Util/ByteString.hs b/common/util/Util/ByteString.hs index 1e63954d..a5ebb653 100644 --- a/common/util/Util/ByteString.hs +++ b/common/util/Util/ByteString.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} diff --git a/common/util/Util/Concurrent.hs b/common/util/Util/Concurrent.hs index 8e09f2ad..07a145ec 100644 --- a/common/util/Util/Concurrent.hs +++ b/common/util/Util/Concurrent.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# OPTIONS_GHC -fno-warn-missing-signatures #-} module Util.Concurrent diff --git a/common/util/Util/Control/Exception.hs b/common/util/Util/Control/Exception.hs index aad53d94..6ecc6fe4 100644 --- a/common/util/Util/Control/Exception.hs +++ b/common/util/Util/Control/Exception.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE CPP #-} {-# LANGUAGE ScopedTypeVariables #-} diff --git a/common/util/Util/Control/Monad.hs b/common/util/Util/Control/Monad.hs index eb7744e6..eb3da80e 100644 --- a/common/util/Util/Control/Monad.hs +++ b/common/util/Util/Control/Monad.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.Control.Monad ( whenMonoid diff --git a/common/util/Util/Defer.hs b/common/util/Util/Defer.hs index eaddbe1c..a425df12 100644 --- a/common/util/Util/Defer.hs +++ b/common/util/Util/Defer.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.Defer ( Defer, Embed(..), now, later, immediately, lift diff --git a/common/util/Util/Directory.hs b/common/util/Util/Directory.hs index 2a3ac172..1c367cba 100644 --- a/common/util/Util/Directory.hs +++ b/common/util/Util/Directory.hs @@ -1,4 +1,10 @@ --- Copyright 2004-present Facebook. All Rights Reserved. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.Directory ( Directory(..), diff --git a/common/util/Util/Dll.hs b/common/util/Util/Dll.hs index 20e3cadf..a97b8269 100644 --- a/common/util/Util/Dll.hs +++ b/common/util/Util/Dll.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.Dll ( SOExport diff --git a/common/util/Util/Encoding.hs b/common/util/Util/Encoding.hs index 5c70e7d7..1dda1ac1 100644 --- a/common/util/Util/Encoding.hs +++ b/common/util/Util/Encoding.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.Encoding where diff --git a/common/util/Util/Err.hs b/common/util/Util/Err.hs index a6bb4328..de67f503 100644 --- a/common/util/Util/Err.hs +++ b/common/util/Util/Err.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.Err ( Err diff --git a/common/util/Util/EventBase.hs b/common/util/Util/EventBase.hs index a3cfe5b0..60f31cc2 100644 --- a/common/util/Util/EventBase.hs +++ b/common/util/Util/EventBase.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.EventBase ( CppIOExecutor diff --git a/common/util/Util/Executor.hs b/common/util/Util/Executor.hs index 8cf0dd6d..1ed62638 100644 --- a/common/util/Util/Executor.hs +++ b/common/util/Util/Executor.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.Executor ( CppFollyExecutor diff --git a/common/util/Util/Fd.hs b/common/util/Util/Fd.hs index a6d1fbc7..7c329170 100644 --- a/common/util/Util/Fd.hs +++ b/common/util/Util/Fd.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.Fd ( withFdEventNotification diff --git a/common/util/Util/FilePath.hs b/common/util/Util/FilePath.hs index acc459f5..2acdcc40 100644 --- a/common/util/Util/FilePath.hs +++ b/common/util/Util/FilePath.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.FilePath ( DirEnv(..) diff --git a/common/util/Util/Function.hs b/common/util/Util/Function.hs index be76ba49..82918a90 100644 --- a/common/util/Util/Function.hs +++ b/common/util/Util/Function.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.Function ( compose diff --git a/common/util/Util/GFlags.cpp b/common/util/Util/GFlags.cpp index b7c72938..9428e7cc 100644 --- a/common/util/Util/GFlags.cpp +++ b/common/util/Util/GFlags.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include diff --git a/common/util/Util/GFlags.hs b/common/util/Util/GFlags.hs index 91c7a7a7..1c5d03d1 100644 --- a/common/util/Util/GFlags.hs +++ b/common/util/Util/GFlags.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE ForeignFunctionInterface #-} diff --git a/common/util/Util/Graph.hs b/common/util/Util/Graph.hs index c5c9b0ff..fa841c30 100644 --- a/common/util/Util/Graph.hs +++ b/common/util/Util/Graph.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.Graph ( postorder diff --git a/common/util/Util/HSE.hs b/common/util/Util/HSE.hs index 27d962d0..d556cf18 100644 --- a/common/util/Util/HSE.hs +++ b/common/util/Util/HSE.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE CPP #-} diff --git a/common/util/Util/HUnit.hs b/common/util/Util/HUnit.hs index 2be99d8d..de4f3f78 100644 --- a/common/util/Util/HUnit.hs +++ b/common/util/Util/HUnit.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.HUnit ( absError diff --git a/common/util/Util/HashMap/Strict.hs b/common/util/Util/HashMap/Strict.hs index 1ad8ef29..0679b63b 100644 --- a/common/util/Util/HashMap/Strict.hs +++ b/common/util/Util/HashMap/Strict.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.HashMap.Strict ( mapKeys diff --git a/common/util/Util/IO.hs b/common/util/Util/IO.hs index c93dd056..5ce5f0fe 100644 --- a/common/util/Util/IO.hs +++ b/common/util/Util/IO.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.IO ( atomicIO diff --git a/common/util/Util/IOBuf.hsc b/common/util/Util/IOBuf.hsc index 743286e7..6b0423ce 100644 --- a/common/util/Util/IOBuf.hsc +++ b/common/util/Util/IOBuf.hsc @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.IOBuf ( unsafeWithIOBuf diff --git a/common/util/Util/JSON/Pretty.hs b/common/util/Util/JSON/Pretty.hs index ef00bfe3..d1dda93f 100644 --- a/common/util/Util/JSON/Pretty.hs +++ b/common/util/Util/JSON/Pretty.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# OPTIONS -Wno-orphans #-} diff --git a/common/util/Util/Lens.hs b/common/util/Util/Lens.hs index a869bf0f..48fca4fa 100644 --- a/common/util/Util/Lens.hs +++ b/common/util/Util/Lens.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.Lens ( lowerCamelCaseLensRules diff --git a/common/util/Util/Linter.hs b/common/util/Util/Linter.hs index ba6c8b3e..766e0dab 100644 --- a/common/util/Util/Linter.hs +++ b/common/util/Util/Linter.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.Linter ( LintError(..) diff --git a/common/util/Util/List.hs b/common/util/Util/List.hs index c3729d0c..f70e0a0d 100644 --- a/common/util/Util/List.hs +++ b/common/util/Util/List.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.List ( blend diff --git a/common/util/Util/List/HigherOrder.hs b/common/util/Util/List/HigherOrder.hs index 7fe77f08..06f33381 100644 --- a/common/util/Util/List/HigherOrder.hs +++ b/common/util/Util/List/HigherOrder.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE PolyKinds #-} module Util.List.HigherOrder diff --git a/common/util/Util/Log.hs b/common/util/Util/Log.hs index b6e7d377..136d00cf 100644 --- a/common/util/Util/Log.hs +++ b/common/util/Util/Log.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.Log ( vlog diff --git a/common/util/Util/Log/Internal.hs b/common/util/Util/Log/Internal.hs index e2a00de8..88e79436 100644 --- a/common/util/Util/Log/Internal.hs +++ b/common/util/Util/Log/Internal.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE TemplateHaskell #-} diff --git a/common/util/Util/Log/String.hs b/common/util/Util/Log/String.hs index b1a52f5c..4014ae30 100644 --- a/common/util/Util/Log/String.hs +++ b/common/util/Util/Log/String.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE ImplicitParams #-} diff --git a/common/util/Util/Log/Text.hs b/common/util/Util/Log/Text.hs index b6ca5510..36a1266d 100644 --- a/common/util/Util/Log/Text.hs +++ b/common/util/Util/Log/Text.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE ImplicitParams #-} diff --git a/common/util/Util/LogIfSlow.hs b/common/util/Util/LogIfSlow.hs index b90b7fa5..aa66bad7 100644 --- a/common/util/Util/LogIfSlow.hs +++ b/common/util/Util/LogIfSlow.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE CPP #-} module Util.LogIfSlow (logIfSlow, checkUnsafe) where diff --git a/common/util/Util/Logger.hs b/common/util/Util/Logger.hs index 9eceb10c..0f602a4f 100644 --- a/common/util/Util/Logger.hs +++ b/common/util/Util/Logger.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.Logger ( ActionLog(..) diff --git a/common/util/Util/MD5.hs b/common/util/Util/MD5.hs index 3fc959d5..32f73cf8 100644 --- a/common/util/Util/MD5.hs +++ b/common/util/Util/MD5.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.MD5 (md5) where diff --git a/common/util/Util/Memory.hs b/common/util/Util/Memory.hs index 3171c960..b925cc58 100644 --- a/common/util/Util/Memory.hs +++ b/common/util/Util/Memory.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} diff --git a/common/util/Util/Monoid.hs b/common/util/Util/Monoid.hs index a12b0a8a..7dcb883e 100644 --- a/common/util/Util/Monoid.hs +++ b/common/util/Util/Monoid.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.Monoid ( mwhen diff --git a/common/util/Util/Network.hsc b/common/util/Util/Network.hsc index a3cb0b3b..a08cec87 100644 --- a/common/util/Util/Network.hsc +++ b/common/util/Util/Network.hsc @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE ForeignFunctionInterface #-} diff --git a/common/util/Util/OptParse.hs b/common/util/Util/OptParse.hs index 500d43c8..c0c9aaca 100644 --- a/common/util/Util/OptParse.hs +++ b/common/util/Util/OptParse.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.OptParse ( -- * Options diff --git a/common/util/Util/Predicate.hs b/common/util/Util/Predicate.hs index 832f947d..59e96035 100644 --- a/common/util/Util/Predicate.hs +++ b/common/util/Util/Predicate.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.Predicate ( Pred diff --git a/common/util/Util/PrettyPrint.hs b/common/util/Util/PrettyPrint.hs index 4be3c014..5ea784c3 100644 --- a/common/util/Util/PrettyPrint.hs +++ b/common/util/Util/PrettyPrint.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.PrettyPrint ( renderNumWithUnit diff --git a/common/util/Util/RWVar.hs b/common/util/Util/RWVar.hs index 616160a6..df6eba97 100644 --- a/common/util/Util/RWVar.hs +++ b/common/util/Util/RWVar.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.RWVar ( RWVar diff --git a/common/util/Util/Reader.hs b/common/util/Util/Reader.hs index 11c82347..2c5c38d7 100644 --- a/common/util/Util/Reader.hs +++ b/common/util/Util/Reader.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.Reader ( catchR, catchR_ diff --git a/common/util/Util/RequestContext.hs b/common/util/Util/RequestContext.hs index b7c7f46b..35e251af 100644 --- a/common/util/Util/RequestContext.hs +++ b/common/util/Util/RequestContext.hs @@ -1,4 +1,11 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} + {-# LANGUAGE TemplateHaskell #-} module Util.RequestContext ( diff --git a/common/util/Util/STM.hs b/common/util/Util/STM.hs index 8f806eeb..00a4e67b 100644 --- a/common/util/Util/STM.hs +++ b/common/util/Util/STM.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} -- | Reexports 'Control.Concurrent.STM' -- adding logging for deadlocks and utility functions diff --git a/common/util/Util/Show.hs b/common/util/Util/Show.hs index 426109bc..b8cc7e05 100644 --- a/common/util/Util/Show.hs +++ b/common/util/Util/Show.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.Show ( Pretty(..) diff --git a/common/util/Util/String.hs b/common/util/Util/String.hs index 91293ec7..0c15b74a 100644 --- a/common/util/Util/String.hs +++ b/common/util/Util/String.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} -- (c) The University of Glasgow 2006 diff --git a/common/util/Util/String/Quasi.hs b/common/util/Util/String/Quasi.hs index bdbdb7f3..10a021b3 100644 --- a/common/util/Util/String/Quasi.hs +++ b/common/util/Util/String/Quasi.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE TemplateHaskell #-} module Util.String.Quasi (s) where diff --git a/common/util/Util/Testing.hs b/common/util/Util/Testing.hs index 28bb074e..959fde5c 100644 --- a/common/util/Util/Testing.hs +++ b/common/util/Util/Testing.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE NamedFieldPuns #-} module Util.Testing diff --git a/common/util/Util/Text.hs b/common/util/Util/Text.hs index caafe375..e36c2541 100644 --- a/common/util/Util/Text.hs +++ b/common/util/Util/Text.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} diff --git a/common/util/Util/TimeSec.hs b/common/util/Util/TimeSec.hs index c1a385ab..b37d6d6e 100644 --- a/common/util/Util/TimeSec.hs +++ b/common/util/Util/TimeSec.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.TimeSec ( Time(..) diff --git a/common/util/Util/Timing.hs b/common/util/Util/Timing.hs index 0bf28a9a..585df0c3 100644 --- a/common/util/Util/Timing.hs +++ b/common/util/Util/Timing.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.Timing ( reportTime diff --git a/common/util/Util/ToExp.hs b/common/util/Util/ToExp.hs index 6afbf945..fd9c92c9 100644 --- a/common/util/Util/ToExp.hs +++ b/common/util/Util/ToExp.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.ToExp ( ToExp(..) diff --git a/common/util/Util/Typeable.hs b/common/util/Util/Typeable.hs index 053dca5d..81df9780 100644 --- a/common/util/Util/Typeable.hs +++ b/common/util/Util/Typeable.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.Typeable ( cast1 diff --git a/common/util/Util/WBVar.hs b/common/util/Util/WBVar.hs index 21718a66..082fdb2e 100644 --- a/common/util/Util/WBVar.hs +++ b/common/util/Util/WBVar.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util.WBVar ( WBVar, diff --git a/common/util/cpp/Constructible.h b/common/util/cpp/Constructible.h index e4784fb6..8cb26683 100644 --- a/common/util/cpp/Constructible.h +++ b/common/util/cpp/Constructible.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #pragma once diff --git a/common/util/cpp/Destructible.h b/common/util/cpp/Destructible.h index acbdea80..1b794594 100644 --- a/common/util/cpp/Destructible.h +++ b/common/util/cpp/Destructible.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #pragma once diff --git a/common/util/cpp/EventBaseDataplane.cpp b/common/util/cpp/EventBaseDataplane.cpp index 8d1e7aae..5b1366bb 100644 --- a/common/util/cpp/EventBaseDataplane.cpp +++ b/common/util/cpp/EventBaseDataplane.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include diff --git a/common/util/cpp/Executor.cpp b/common/util/cpp/Executor.cpp index 8c775c3c..5e292c46 100644 --- a/common/util/cpp/Executor.cpp +++ b/common/util/cpp/Executor.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include diff --git a/common/util/cpp/HsOption.h b/common/util/cpp/HsOption.h index 3d998d2a..551e56c3 100644 --- a/common/util/cpp/HsOption.h +++ b/common/util/cpp/HsOption.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #pragma once diff --git a/common/util/cpp/HsStdTuple.h b/common/util/cpp/HsStdTuple.h index 263988f6..84cf615c 100644 --- a/common/util/cpp/HsStdTuple.h +++ b/common/util/cpp/HsStdTuple.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #pragma once diff --git a/common/util/cpp/HsStdVariant.h b/common/util/cpp/HsStdVariant.h index e5356a79..c51edc4e 100644 --- a/common/util/cpp/HsStdVariant.h +++ b/common/util/cpp/HsStdVariant.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #pragma once diff --git a/common/util/cpp/HsStruct.cpp b/common/util/cpp/HsStruct.cpp index 822ee38a..85395cdf 100644 --- a/common/util/cpp/HsStruct.cpp +++ b/common/util/cpp/HsStruct.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include "cpp/HsStruct.h" diff --git a/common/util/cpp/HsStruct.h b/common/util/cpp/HsStruct.h index 7a8ba605..e6747b7c 100644 --- a/common/util/cpp/HsStruct.h +++ b/common/util/cpp/HsStruct.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #pragma once diff --git a/common/util/cpp/HsStructDefines.h b/common/util/cpp/HsStructDefines.h index d0e3578b..32b24488 100644 --- a/common/util/cpp/HsStructDefines.h +++ b/common/util/cpp/HsStructDefines.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #pragma once diff --git a/common/util/cpp/HsVariant.h b/common/util/cpp/HsVariant.h index 8512ff29..d6e6bdf7 100644 --- a/common/util/cpp/HsVariant.h +++ b/common/util/cpp/HsVariant.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #pragma once diff --git a/common/util/cpp/IOBuf.cpp b/common/util/cpp/IOBuf.cpp index 3353d079..4d24dd91 100644 --- a/common/util/cpp/IOBuf.cpp +++ b/common/util/cpp/IOBuf.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include diff --git a/common/util/cpp/IOBuf.h b/common/util/cpp/IOBuf.h index 5fa8a8e8..8022bbd6 100644 --- a/common/util/cpp/IOBuf.h +++ b/common/util/cpp/IOBuf.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #pragma once diff --git a/common/util/cpp/Marshallable.h b/common/util/cpp/Marshallable.h index 8aab0726..7f56191d 100644 --- a/common/util/cpp/Marshallable.h +++ b/common/util/cpp/Marshallable.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #pragma once #include "cpp/Constructible.h" diff --git a/common/util/cpp/RequestContext.cpp b/common/util/cpp/RequestContext.cpp index 29525ef3..efdd277f 100644 --- a/common/util/cpp/RequestContext.cpp +++ b/common/util/cpp/RequestContext.cpp @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ + #include "cpp/RequestContext.h" #include "cpp/Destructible.h" diff --git a/common/util/cpp/RequestContext.h b/common/util/cpp/RequestContext.h index 2a3f34ba..fedcae76 100644 --- a/common/util/cpp/RequestContext.h +++ b/common/util/cpp/RequestContext.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ + #pragma once #include diff --git a/common/util/cpp/cdynamic.cpp b/common/util/cpp/cdynamic.cpp index 3e4c51b4..c7b59158 100644 --- a/common/util/cpp/cdynamic.cpp +++ b/common/util/cpp/cdynamic.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include "cpp/cdynamic.h" diff --git a/common/util/cpp/cdynamic.h b/common/util/cpp/cdynamic.h index 83806078..f18e97ff 100644 --- a/common/util/cpp/cdynamic.h +++ b/common/util/cpp/cdynamic.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #pragma once diff --git a/common/util/cpp/logging.cpp b/common/util/cpp/logging.cpp index 0901272a..149b648f 100644 --- a/common/util/cpp/logging.cpp +++ b/common/util/cpp/logging.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include "cpp/logging.h" #include diff --git a/common/util/cpp/logging.h b/common/util/cpp/logging.h index bf14dbba..3165b0e2 100644 --- a/common/util/cpp/logging.h +++ b/common/util/cpp/logging.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #pragma once diff --git a/common/util/hsc.h b/common/util/hsc.h index c92ddea3..4d469f27 100644 --- a/common/util/hsc.h +++ b/common/util/hsc.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #pragma once diff --git a/common/util/tests/AesonTest.hs b/common/util/tests/AesonTest.hs index 75a094be..0ef542c4 100644 --- a/common/util/tests/AesonTest.hs +++ b/common/util/tests/AesonTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module AesonTest (main) where diff --git a/common/util/tests/AllocLimitTest.hs b/common/util/tests/AllocLimitTest.hs index dc5c29c8..f3e2bcb9 100644 --- a/common/util/tests/AllocLimitTest.hs +++ b/common/util/tests/AllocLimitTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE MagicHash #-} module AllocLimitTest (main) where diff --git a/common/util/tests/AsyncTest.hs b/common/util/tests/AsyncTest.hs index fb66717b..5d28d217 100644 --- a/common/util/tests/AsyncTest.hs +++ b/common/util/tests/AsyncTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-} diff --git a/common/util/tests/BufferTest.hs b/common/util/tests/BufferTest.hs index bcd1fefa..8a7dbae0 100644 --- a/common/util/tests/BufferTest.hs +++ b/common/util/tests/BufferTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# OPTIONS_GHC -fno-warn-orphans #-} module BufferTest (main) where diff --git a/common/util/tests/ConcurrentTest.hs b/common/util/tests/ConcurrentTest.hs index a64f41cb..5c85af9f 100644 --- a/common/util/tests/ConcurrentTest.hs +++ b/common/util/tests/ConcurrentTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# OPTIONS_GHC -Wno-name-shadowing #-} module ConcurrentTest where diff --git a/common/util/tests/Control/MonadTest.hs b/common/util/tests/Control/MonadTest.hs index 3e3a3e30..d69fa33a 100644 --- a/common/util/tests/Control/MonadTest.hs +++ b/common/util/tests/Control/MonadTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Control.MonadTest (main) where diff --git a/common/util/tests/ControlExceptionTest.hs b/common/util/tests/ControlExceptionTest.hs index a5697923..5e398eec 100644 --- a/common/util/tests/ControlExceptionTest.hs +++ b/common/util/tests/ControlExceptionTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module ControlExceptionTest where diff --git a/common/util/tests/DynamicBench.hs b/common/util/tests/DynamicBench.hs index eb25879d..6fa0b46e 100644 --- a/common/util/tests/DynamicBench.hs +++ b/common/util/tests/DynamicBench.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module DynamicBench (main) where diff --git a/common/util/tests/DynamicHelper.cpp b/common/util/tests/DynamicHelper.cpp index 43485159..7ccc5e4d 100644 --- a/common/util/tests/DynamicHelper.cpp +++ b/common/util/tests/DynamicHelper.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include "tests/DynamicHelper.h" diff --git a/common/util/tests/DynamicHelper.h b/common/util/tests/DynamicHelper.h index dcfa9913..a72f84e2 100644 --- a/common/util/tests/DynamicHelper.h +++ b/common/util/tests/DynamicHelper.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #pragma once diff --git a/common/util/tests/DynamicTest.hs b/common/util/tests/DynamicTest.hs index b7df1165..b0695149 100644 --- a/common/util/tests/DynamicTest.hs +++ b/common/util/tests/DynamicTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module DynamicTest (main) where diff --git a/common/util/tests/ExceptionTest.hs b/common/util/tests/ExceptionTest.hs index 7ed9f4fc..68d9ee55 100644 --- a/common/util/tests/ExceptionTest.hs +++ b/common/util/tests/ExceptionTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# OPTIONS_GHC -fno-warn-name-shadowing #-} {-# LANGUAGE OverloadedStrings #-} diff --git a/common/util/tests/FilePathTest.hs b/common/util/tests/FilePathTest.hs index 72d2520b..2b15d86c 100644 --- a/common/util/tests/FilePathTest.hs +++ b/common/util/tests/FilePathTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module FilePathTest (main) where diff --git a/common/util/tests/GFlagsTest.cpp b/common/util/tests/GFlagsTest.cpp index 0d64b19d..a31be3df 100644 --- a/common/util/tests/GFlagsTest.cpp +++ b/common/util/tests/GFlagsTest.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include diff --git a/common/util/tests/GFlagsTest.hs b/common/util/tests/GFlagsTest.hs index 9da89a40..ff348b0c 100644 --- a/common/util/tests/GFlagsTest.hs +++ b/common/util/tests/GFlagsTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module GFlagsTest where diff --git a/common/util/tests/GraphTest.hs b/common/util/tests/GraphTest.hs index b401aa01..23845139 100644 --- a/common/util/tests/GraphTest.hs +++ b/common/util/tests/GraphTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module GraphTest (main) where diff --git a/common/util/tests/HsStructHelper.cpp b/common/util/tests/HsStructHelper.cpp index a05cf832..6422d7ee 100644 --- a/common/util/tests/HsStructHelper.cpp +++ b/common/util/tests/HsStructHelper.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include "tests/HsStructHelper.h" diff --git a/common/util/tests/HsStructHelper.h b/common/util/tests/HsStructHelper.h index 9ac33bcc..6ec2ea63 100644 --- a/common/util/tests/HsStructHelper.h +++ b/common/util/tests/HsStructHelper.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #pragma once diff --git a/common/util/tests/HsStructTest.hs b/common/util/tests/HsStructTest.hs index fd2ff26b..ecd7c477 100644 --- a/common/util/tests/HsStructTest.hs +++ b/common/util/tests/HsStructTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module HsStructTest (main) where diff --git a/common/util/tests/HsStructTestTypes.hsc b/common/util/tests/HsStructTestTypes.hsc index 51ca5384..464473cc 100644 --- a/common/util/tests/HsStructTestTypes.hsc +++ b/common/util/tests/HsStructTestTypes.hsc @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE TemplateHaskell #-} {-# OPTIONS_GHC -fno-warn-orphans #-} diff --git a/common/util/tests/IOBufTest.cpp b/common/util/tests/IOBufTest.cpp index 960b2330..54a208a2 100644 --- a/common/util/tests/IOBufTest.cpp +++ b/common/util/tests/IOBufTest.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include #include diff --git a/common/util/tests/IOBufTest.hs b/common/util/tests/IOBufTest.hs index aa216e7a..8e9b9431 100644 --- a/common/util/tests/IOBufTest.hs +++ b/common/util/tests/IOBufTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module IOBufTest where diff --git a/common/util/tests/IOTest.hs b/common/util/tests/IOTest.hs index 77e903b3..123dc375 100644 --- a/common/util/tests/IOTest.hs +++ b/common/util/tests/IOTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module IOTest ( main diff --git a/common/util/tests/JSONPrettyTest.hs b/common/util/tests/JSONPrettyTest.hs index bed11381..5e96c6a0 100644 --- a/common/util/tests/JSONPrettyTest.hs +++ b/common/util/tests/JSONPrettyTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE QuasiQuotes #-} module JSONPrettyTest (main) where diff --git a/common/util/tests/LensTest.hs b/common/util/tests/LensTest.hs index c2187d51..690fa063 100644 --- a/common/util/tests/LensTest.hs +++ b/common/util/tests/LensTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE TemplateHaskell #-} diff --git a/common/util/tests/ListTest.hs b/common/util/tests/ListTest.hs index 54818800..25a7b7cd 100644 --- a/common/util/tests/ListTest.hs +++ b/common/util/tests/ListTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module ListTest (main) where diff --git a/common/util/tests/LogTest.hs b/common/util/tests/LogTest.hs index 008c26c7..6ebc944a 100644 --- a/common/util/tests/LogTest.hs +++ b/common/util/tests/LogTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module LogTest (main) where diff --git a/common/util/tests/LogTest/Explicit.hs b/common/util/tests/LogTest/Explicit.hs index 08092c1d..6404439d 100644 --- a/common/util/tests/LogTest/Explicit.hs +++ b/common/util/tests/LogTest/Explicit.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE NoOverloadedStrings #-} diff --git a/common/util/tests/LogTest/MonadStack.hs b/common/util/tests/LogTest/MonadStack.hs index d6b6703c..89dd706f 100644 --- a/common/util/tests/LogTest/MonadStack.hs +++ b/common/util/tests/LogTest/MonadStack.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE NoOverloadedStrings #-} diff --git a/common/util/tests/LogTest/OverloadedStrings.hs b/common/util/tests/LogTest/OverloadedStrings.hs index 62b2b00f..a60a75af 100644 --- a/common/util/tests/LogTest/OverloadedStrings.hs +++ b/common/util/tests/LogTest/OverloadedStrings.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE OverloadedStrings #-} diff --git a/common/util/tests/MD5Test.hs b/common/util/tests/MD5Test.hs index 65ab90f6..2c6027be 100644 --- a/common/util/tests/MD5Test.hs +++ b/common/util/tests/MD5Test.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module MD5Test (main) where diff --git a/common/util/tests/MovingAverageRateLimiterTest.hs b/common/util/tests/MovingAverageRateLimiterTest.hs index 874e47a2..d9261fbd 100644 --- a/common/util/tests/MovingAverageRateLimiterTest.hs +++ b/common/util/tests/MovingAverageRateLimiterTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module MovingAverageRateLimiterTest (main) where diff --git a/common/util/tests/OptParseTest.hs b/common/util/tests/OptParseTest.hs index 72577bfc..8235de93 100644 --- a/common/util/tests/OptParseTest.hs +++ b/common/util/tests/OptParseTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module OptParseTest where diff --git a/common/util/tests/RWVarTest.hs b/common/util/tests/RWVarTest.hs index 9637eef1..9667bf67 100644 --- a/common/util/tests/RWVarTest.hs +++ b/common/util/tests/RWVarTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module RWVarTest (main) where diff --git a/common/util/tests/RateLimiterMapTest.hs b/common/util/tests/RateLimiterMapTest.hs index 6a607d66..b7d0a8ca 100644 --- a/common/util/tests/RateLimiterMapTest.hs +++ b/common/util/tests/RateLimiterMapTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module RateLimiterMapTest where diff --git a/common/util/tests/RegexTest.hs b/common/util/tests/RegexTest.hs index 81481aba..0135c38e 100644 --- a/common/util/tests/RegexTest.hs +++ b/common/util/tests/RegexTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module RegexTest (main) where diff --git a/common/util/tests/RequestContextTest.hs b/common/util/tests/RequestContextTest.hs index 589bfcd0..87ad672d 100644 --- a/common/util/tests/RequestContextTest.hs +++ b/common/util/tests/RequestContextTest.hs @@ -1,3 +1,11 @@ +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} + module RequestContextTest ( main ) where diff --git a/common/util/tests/RequestContextTestHelper.hs b/common/util/tests/RequestContextTestHelper.hs index 77bc87a0..700b8f01 100644 --- a/common/util/tests/RequestContextTestHelper.hs +++ b/common/util/tests/RequestContextTestHelper.hs @@ -1,3 +1,11 @@ +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} + module RequestContextTestHelper ( getCurrentTestValue , setCurrentTestValue diff --git a/common/util/tests/StreamTest.hs b/common/util/tests/StreamTest.hs index 0d23d612..2f7721a5 100644 --- a/common/util/tests/StreamTest.hs +++ b/common/util/tests/StreamTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module StreamTest (main) where diff --git a/common/util/tests/StringQuasiTest.hs b/common/util/tests/StringQuasiTest.hs index 76036128..1e9ea297 100644 --- a/common/util/tests/StringQuasiTest.hs +++ b/common/util/tests/StringQuasiTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE QuasiQuotes #-} module StringQuasiTest (main) where diff --git a/common/util/tests/THTest.hs b/common/util/tests/THTest.hs index 8e8bdb52..09d4e6c3 100644 --- a/common/util/tests/THTest.hs +++ b/common/util/tests/THTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE TemplateHaskell #-} diff --git a/common/util/tests/TimeSecTest.hs b/common/util/tests/TimeSecTest.hs index 876ae31c..2e613cfa 100644 --- a/common/util/tests/TimeSecTest.hs +++ b/common/util/tests/TimeSecTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module TimeSecTest (main) where diff --git a/common/util/tests/ToExpTest.hs b/common/util/tests/ToExpTest.hs index 4c94c62f..ae4066a6 100644 --- a/common/util/tests/ToExpTest.hs +++ b/common/util/tests/ToExpTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module ToExpTest where diff --git a/common/util/tests/UnitTests.hs b/common/util/tests/UnitTests.hs index 8680ca28..835b82af 100644 --- a/common/util/tests/UnitTests.hs +++ b/common/util/tests/UnitTests.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE CPP #-} module UnitTests (main) where diff --git a/common/util/tests/cpp/RequestContextTest.cpp b/common/util/tests/cpp/RequestContextTest.cpp index 1d02345f..544debdc 100644 --- a/common/util/tests/cpp/RequestContextTest.cpp +++ b/common/util/tests/cpp/RequestContextTest.cpp @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ + #include #include "cpp/RequestContext.h" diff --git a/common/util/tests/github/SpecRunner.hs b/common/util/tests/github/SpecRunner.hs index 890a4d58..541f0108 100644 --- a/common/util/tests/github/SpecRunner.hs +++ b/common/util/tests/github/SpecRunner.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module SpecRunner where diff --git a/compiler/Thrift/Compiler.hs b/compiler/Thrift/Compiler.hs index de049ce5..9d61346e 100644 --- a/compiler/Thrift/Compiler.hs +++ b/compiler/Thrift/Compiler.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE TypeApplications #-} module Thrift.Compiler diff --git a/compiler/Thrift/Compiler/GenClient.hs b/compiler/Thrift/Compiler/GenClient.hs index 9617e90c..aeabc40a 100644 --- a/compiler/Thrift/Compiler/GenClient.hs +++ b/compiler/Thrift/Compiler/GenClient.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE CPP #-} diff --git a/compiler/Thrift/Compiler/GenConst.hs b/compiler/Thrift/Compiler/GenConst.hs index c73078e1..5be8aabe 100644 --- a/compiler/Thrift/Compiler/GenConst.hs +++ b/compiler/Thrift/Compiler/GenConst.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.Compiler.GenConst ( genConstImports diff --git a/compiler/Thrift/Compiler/GenEnum.hs b/compiler/Thrift/Compiler/GenEnum.hs index 074599a6..07d43552 100644 --- a/compiler/Thrift/Compiler/GenEnum.hs +++ b/compiler/Thrift/Compiler/GenEnum.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.Compiler.GenEnum ( genEnumImports diff --git a/compiler/Thrift/Compiler/GenFunction.hs b/compiler/Thrift/Compiler/GenFunction.hs index efb2b17b..1063eb21 100644 --- a/compiler/Thrift/Compiler/GenFunction.hs +++ b/compiler/Thrift/Compiler/GenFunction.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.Compiler.GenFunction ( genFunctionDecls diff --git a/compiler/Thrift/Compiler/GenHaskell.hs b/compiler/Thrift/Compiler/GenHaskell.hs index fd2d2578..f3f402d3 100644 --- a/compiler/Thrift/Compiler/GenHaskell.hs +++ b/compiler/Thrift/Compiler/GenHaskell.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.Compiler.GenHaskell ( genHsCode diff --git a/compiler/Thrift/Compiler/GenJSON.hs b/compiler/Thrift/Compiler/GenJSON.hs index b8433ad0..b6ec3df1 100644 --- a/compiler/Thrift/Compiler/GenJSON.hs +++ b/compiler/Thrift/Compiler/GenJSON.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.Compiler.GenJSON ( genJSON diff --git a/compiler/Thrift/Compiler/GenJSONLoc.hs b/compiler/Thrift/Compiler/GenJSONLoc.hs index 5a3d10ee..1b3cc785 100644 --- a/compiler/Thrift/Compiler/GenJSONLoc.hs +++ b/compiler/Thrift/Compiler/GenJSONLoc.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE NamedFieldPuns #-} module Thrift.Compiler.GenJSONLoc diff --git a/compiler/Thrift/Compiler/GenService.hs b/compiler/Thrift/Compiler/GenService.hs index 6cb1b4aa..4d25d5d6 100644 --- a/compiler/Thrift/Compiler/GenService.hs +++ b/compiler/Thrift/Compiler/GenService.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE CPP #-} diff --git a/compiler/Thrift/Compiler/GenStruct.hs b/compiler/Thrift/Compiler/GenStruct.hs index c3788a1c..73f77dad 100644 --- a/compiler/Thrift/Compiler/GenStruct.hs +++ b/compiler/Thrift/Compiler/GenStruct.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.Compiler.GenStruct ( genStructDecl diff --git a/compiler/Thrift/Compiler/GenTypedef.hs b/compiler/Thrift/Compiler/GenTypedef.hs index a0454a56..326f7a83 100644 --- a/compiler/Thrift/Compiler/GenTypedef.hs +++ b/compiler/Thrift/Compiler/GenTypedef.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.Compiler.GenTypedef ( genTypedefDecl diff --git a/compiler/Thrift/Compiler/GenUnion.hs b/compiler/Thrift/Compiler/GenUnion.hs index 2629744b..7aa039e9 100644 --- a/compiler/Thrift/Compiler/GenUnion.hs +++ b/compiler/Thrift/Compiler/GenUnion.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.Compiler.GenUnion ( genUnionDecl diff --git a/compiler/Thrift/Compiler/GenUtils.hs b/compiler/Thrift/Compiler/GenUtils.hs index bd7f0f4d..23916962 100644 --- a/compiler/Thrift/Compiler/GenUtils.hs +++ b/compiler/Thrift/Compiler/GenUtils.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.Compiler.GenUtils ( textToName diff --git a/compiler/Thrift/Compiler/OptParse.hs b/compiler/Thrift/Compiler/OptParse.hs index e5a00b54..e984452f 100644 --- a/compiler/Thrift/Compiler/OptParse.hs +++ b/compiler/Thrift/Compiler/OptParse.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE ApplicativeDo #-} {-# LANGUAGE ConstraintKinds #-} diff --git a/compiler/Thrift/Compiler/Options.hs b/compiler/Thrift/Compiler/Options.hs index b65b79f2..ad25f63a 100644 --- a/compiler/Thrift/Compiler/Options.hs +++ b/compiler/Thrift/Compiler/Options.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.Compiler.Options ( Options(..), defaultOptions diff --git a/compiler/Thrift/Compiler/Plugin.hs b/compiler/Thrift/Compiler/Plugin.hs index 77f83020..a8370f16 100644 --- a/compiler/Thrift/Compiler/Plugin.hs +++ b/compiler/Thrift/Compiler/Plugin.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE TypeOperators #-} module Thrift.Compiler.Plugin diff --git a/compiler/Thrift/Compiler/Pretty.hs b/compiler/Thrift/Compiler/Pretty.hs index 01795d3e..e03f4c14 100644 --- a/compiler/Thrift/Compiler/Pretty.hs +++ b/compiler/Thrift/Compiler/Pretty.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.Compiler.Pretty ( renderTypeError diff --git a/compiler/Thrift/Compiler/Typechecker.hs b/compiler/Thrift/Compiler/Typechecker.hs index 53a341f2..989267db 100644 --- a/compiler/Thrift/Compiler/Typechecker.hs +++ b/compiler/Thrift/Compiler/Typechecker.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE TypeOperators, NamedFieldPuns #-} module Thrift.Compiler.Typechecker diff --git a/compiler/Thrift/Compiler/Typechecker/Monad.hs b/compiler/Thrift/Compiler/Typechecker/Monad.hs index ff860417..190e4623 100644 --- a/compiler/Thrift/Compiler/Typechecker/Monad.hs +++ b/compiler/Thrift/Compiler/Typechecker/Monad.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE KindSignatures #-} {-# LANGUAGE PolyKinds #-} diff --git a/compiler/Thrift/Compiler/Types.hs b/compiler/Thrift/Compiler/Types.hs index 1c716b1a..0445cc29 100644 --- a/compiler/Thrift/Compiler/Types.hs +++ b/compiler/Thrift/Compiler/Types.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE AllowAmbiguousTypes #-} {-# LANGUAGE ConstraintKinds #-} diff --git a/compiler/main/Main.hs b/compiler/main/Main.hs index 356577fb..a0eadd05 100644 --- a/compiler/main/Main.hs +++ b/compiler/main/Main.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Main (main) where diff --git a/compiler/plugins/Thrift/Compiler/Plugins/Haskell.hs b/compiler/plugins/Thrift/Compiler/Plugins/Haskell.hs index ac1a99c3..2325e2a5 100644 --- a/compiler/plugins/Thrift/Compiler/Plugins/Haskell.hs +++ b/compiler/plugins/Thrift/Compiler/Plugins/Haskell.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.Compiler.Plugins.Haskell ( Haskell, HSType, HS diff --git a/compiler/plugins/Thrift/Compiler/Plugins/Linter.hs b/compiler/plugins/Thrift/Compiler/Plugins/Linter.hs index 5b3e89bf..944a24dc 100644 --- a/compiler/plugins/Thrift/Compiler/Plugins/Linter.hs +++ b/compiler/plugins/Thrift/Compiler/Plugins/Linter.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# OPTIONS_GHC -Wno-incomplete-patterns #-} diff --git a/compiler/test/DummyBinaryForBuild.hs b/compiler/test/DummyBinaryForBuild.hs index 0c443d10..900570d0 100644 --- a/compiler/test/DummyBinaryForBuild.hs +++ b/compiler/test/DummyBinaryForBuild.hs @@ -1,4 +1,11 @@ --- Copyright 2004-present Facebook. All Rights Reserved. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} + {-# OPTIONS_GHC -fno-warn-unused-imports#-} module DummyBinaryForBuild diff --git a/compiler/test/InstallFixtures.hs b/compiler/test/InstallFixtures.hs index 9e9660dd..8cbb80b8 100644 --- a/compiler/test/InstallFixtures.hs +++ b/compiler/test/InstallFixtures.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module InstallFixtures (main) where diff --git a/compiler/test/TestFixtures.hs b/compiler/test/TestFixtures.hs index 93798f3d..494ee77e 100644 --- a/compiler/test/TestFixtures.hs +++ b/compiler/test/TestFixtures.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE TypeApplications #-} module TestFixtures (main) where diff --git a/compiler/test/fixtures/gen-basic-loc/a.ast b/compiler/test/fixtures/gen-basic-loc/a.ast index 18b81020..577d8e9f 100644 --- a/compiler/test/fixtures/gen-basic-loc/a.ast +++ b/compiler/test/fixtures/gen-basic-loc/a.ast @@ -36,7 +36,7 @@ }, { "aLoc": "Loc {locFile = \"test/if/a.thrift\", locStartLine = 9, locStartCol = 13, locEndLine = 9, locEndCol = 24}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 11, locEndLine = 45, locEndCol = 20}" + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 51, locStartCol = 11, locEndLine = 51, locEndCol = 20}" } ] }, @@ -108,7 +108,7 @@ "loc_name": "Loc {locFile = \"test/if/a.thrift\", locStartLine = 34, locStartCol = 11, locEndLine = 34, locEndCol = 12}", "name": "b", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}", "name": { "name": "B", "src": "b" @@ -161,7 +161,7 @@ "xref": [ { "aLoc": "Loc {locFile = \"test/if/a.thrift\", locStartLine = 34, locStartCol = 7, locEndLine = 34, locEndCol = 10}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}" + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}" } ] }, @@ -179,7 +179,7 @@ "loc_name": "Loc {locFile = \"test/if/a.thrift\", locStartLine = 36, locStartCol = 11, locEndLine = 36, locEndCol = 20}", "name": "default_d", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}", "name": { "name": "B", "src": "b" @@ -223,7 +223,7 @@ "xref": [ { "aLoc": "Loc {locFile = \"test/if/a.thrift\", locStartLine = 36, locStartCol = 7, locEndLine = 36, locEndCol = 10}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}" + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}" } ] }, @@ -241,7 +241,7 @@ "loc_name": "Loc {locFile = \"test/if/a.thrift\", locStartLine = 38, locStartCol = 16, locEndLine = 38, locEndCol = 20}", "name": "zero", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}", "name": { "name": "Number", "src": "b" @@ -260,11 +260,11 @@ "xref": [ { "aLoc": "Loc {locFile = \"test/if/a.thrift\", locStartLine = 38, locStartCol = 7, locEndLine = 38, locEndCol = 15}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}" + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}" }, { "aLoc": "Loc {locFile = \"test/if/a.thrift\", locStartLine = 38, locStartCol = 23, locEndLine = 38, locEndCol = 29}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 16, locStartCol = 3, locEndLine = 16, locEndCol = 7}" + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 22, locStartCol = 3, locEndLine = 22, locEndCol = 7}" } ] } @@ -301,7 +301,7 @@ "name": "getNumber", "oneway": false, "return_type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}", "name": { "name": "Number", "src": "b" @@ -412,7 +412,7 @@ "name": "b", "requiredness": "default", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}", "name": { "name": "B", "src": "b" @@ -422,7 +422,7 @@ "xref": [ { "aLoc": "Loc {locFile = \"test/if/a.thrift\", locStartLine = 13, locStartCol = 6, locEndLine = 13, locEndCol = 9}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}" + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}" } ] }, @@ -489,7 +489,7 @@ "name": "f", "requiredness": "default", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}", "name": { "name": "Number", "src": "b" @@ -499,7 +499,7 @@ "xref": [ { "aLoc": "Loc {locFile = \"test/if/a.thrift\", locStartLine = 17, locStartCol = 6, locEndLine = 17, locEndCol = 14}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}" + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}" } ] }, diff --git a/compiler/test/fixtures/gen-basic-loc/b.ast b/compiler/test/fixtures/gen-basic-loc/b.ast index 098e2dfc..0e7a1947 100644 --- a/compiler/test/fixtures/gen-basic-loc/b.ast +++ b/compiler/test/fixtures/gen-basic-loc/b.ast @@ -4,14 +4,14 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 42, locStartCol = 7, locEndLine = 42, locEndCol = 11}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 48, locStartCol = 7, locEndLine = 48, locEndCol = 11}" ], "type": { "type": "byte" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 42, locStartCol = 1, locEndLine = 42, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 42, locStartCol = 12, locEndLine = 42, locEndCol = 22}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 48, locStartCol = 1, locEndLine = 48, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 48, locStartCol = 12, locEndLine = 48, locEndCol = 22}", "name": "byte_value", "type": { "type": "byte" @@ -28,14 +28,14 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 43, locStartCol = 7, locEndLine = 43, locEndCol = 10}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 49, locStartCol = 7, locEndLine = 49, locEndCol = 10}" ], "type": { "type": "i16" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 43, locStartCol = 1, locEndLine = 43, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 43, locStartCol = 11, locEndLine = 43, locEndCol = 20}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 49, locStartCol = 1, locEndLine = 49, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 49, locStartCol = 11, locEndLine = 49, locEndCol = 20}", "name": "i16_value", "type": { "type": "i16" @@ -52,14 +52,14 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 44, locStartCol = 7, locEndLine = 44, locEndCol = 10}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 50, locStartCol = 7, locEndLine = 50, locEndCol = 10}" ], "type": { "type": "i32" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 44, locStartCol = 1, locEndLine = 44, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 44, locStartCol = 11, locEndLine = 44, locEndCol = 20}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 50, locStartCol = 1, locEndLine = 50, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 50, locStartCol = 11, locEndLine = 50, locEndCol = 20}", "name": "i32_value", "type": { "type": "i32" @@ -76,14 +76,14 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 7, locEndLine = 45, locEndCol = 10}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 51, locStartCol = 7, locEndLine = 51, locEndCol = 10}" ], "type": { "type": "i64" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 1, locEndLine = 45, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 11, locEndLine = 45, locEndCol = 20}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 51, locStartCol = 1, locEndLine = 51, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 51, locStartCol = 11, locEndLine = 51, locEndCol = 20}", "name": "i64_value", "type": { "type": "i64" @@ -101,14 +101,14 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 46, locStartCol = 7, locEndLine = 46, locEndCol = 12}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 52, locStartCol = 7, locEndLine = 52, locEndCol = 12}" ], "type": { "type": "float" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 46, locStartCol = 1, locEndLine = 46, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 46, locStartCol = 13, locEndLine = 46, locEndCol = 24}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 52, locStartCol = 1, locEndLine = 52, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 52, locStartCol = 13, locEndLine = 52, locEndCol = 24}", "name": "float_value", "type": { "type": "float" @@ -126,14 +126,14 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 47, locStartCol = 7, locEndLine = 47, locEndCol = 13}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 53, locStartCol = 7, locEndLine = 53, locEndCol = 13}" ], "type": { "type": "double" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 47, locStartCol = 1, locEndLine = 47, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 47, locStartCol = 14, locEndLine = 47, locEndCol = 26}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 53, locStartCol = 1, locEndLine = 53, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 53, locStartCol = 14, locEndLine = 53, locEndCol = 26}", "name": "double_value", "type": { "type": "double" @@ -151,14 +151,14 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 48, locStartCol = 7, locEndLine = 48, locEndCol = 11}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 54, locStartCol = 7, locEndLine = 54, locEndCol = 11}" ], "type": { "type": "bool" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 48, locStartCol = 1, locEndLine = 48, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 48, locStartCol = 12, locEndLine = 48, locEndCol = 22}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 54, locStartCol = 1, locEndLine = 54, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 54, locStartCol = 12, locEndLine = 54, locEndCol = 22}", "name": "bool_value", "type": { "type": "bool" @@ -175,14 +175,14 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 49, locStartCol = 7, locEndLine = 49, locEndCol = 13}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 55, locStartCol = 7, locEndLine = 55, locEndCol = 13}" ], "type": { "type": "string" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 49, locStartCol = 1, locEndLine = 49, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 49, locStartCol = 14, locEndLine = 49, locEndCol = 26}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 55, locStartCol = 1, locEndLine = 55, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 55, locStartCol = 14, locEndLine = 55, locEndCol = 26}", "name": "string_value", "type": { "type": "string" @@ -199,14 +199,14 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 50, locStartCol = 7, locEndLine = 50, locEndCol = 13}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 56, locStartCol = 7, locEndLine = 56, locEndCol = 13}" ], "type": { "type": "binary" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 50, locStartCol = 1, locEndLine = 50, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 50, locStartCol = 14, locEndLine = 50, locEndCol = 26}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 56, locStartCol = 1, locEndLine = 56, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 56, locStartCol = 14, locEndLine = 56, locEndCol = 26}", "name": "binary_value", "type": { "type": "binary" @@ -223,20 +223,20 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 51, locStartCol = 7, locEndLine = 51, locEndCol = 10}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 57, locStartCol = 7, locEndLine = 57, locEndCol = 10}" ], "type": { "name": "Int" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 51, locStartCol = 1, locEndLine = 51, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 51, locStartCol = 11, locEndLine = 51, locEndCol = 24}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 57, locStartCol = 1, locEndLine = 57, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 57, locStartCol = 11, locEndLine = 57, locEndCol = 24}", "name": "newtype_value", "type": { "inner_type": { "type": "i64" }, - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 39, locStartCol = 13, locEndLine = 39, locEndCol = 16}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 13, locEndLine = 45, locEndCol = 16}", "name": { "name": "Int" }, @@ -254,8 +254,8 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 51, locStartCol = 7, locEndLine = 51, locEndCol = 10}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 39, locStartCol = 13, locEndLine = 39, locEndCol = 16}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 57, locStartCol = 7, locEndLine = 57, locEndCol = 10}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 13, locEndLine = 45, locEndCol = 16}" } ] }, @@ -263,17 +263,17 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 52, locStartCol = 7, locEndLine = 52, locEndCol = 13}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 58, locStartCol = 7, locEndLine = 58, locEndCol = 13}" ], "type": { "name": "Number" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 52, locStartCol = 1, locEndLine = 52, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 52, locStartCol = 14, locEndLine = 52, locEndCol = 31}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 58, locStartCol = 1, locEndLine = 58, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 58, locStartCol = 14, locEndLine = 58, locEndCol = 31}", "name": "scoped_enum_value", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}", "name": { "name": "Number" }, @@ -289,12 +289,12 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 52, locStartCol = 7, locEndLine = 52, locEndCol = 13}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 58, locStartCol = 7, locEndLine = 58, locEndCol = 13}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}" }, { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 52, locStartCol = 34, locEndLine = 52, locEndCol = 45}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 16, locStartCol = 3, locEndLine = 16, locEndCol = 7}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 58, locStartCol = 34, locEndLine = 58, locEndCol = 45}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 22, locStartCol = 3, locEndLine = 22, locEndCol = 7}" } ] }, @@ -302,17 +302,17 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 53, locStartCol = 7, locEndLine = 53, locEndCol = 13}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 59, locStartCol = 7, locEndLine = 59, locEndCol = 13}" ], "type": { "name": "Number" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 53, locStartCol = 1, locEndLine = 53, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 53, locStartCol = 14, locEndLine = 53, locEndCol = 24}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 59, locStartCol = 1, locEndLine = 59, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 59, locStartCol = 14, locEndLine = 59, locEndCol = 24}", "name": "enum_value", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}", "name": { "name": "Number" }, @@ -328,12 +328,12 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 53, locStartCol = 7, locEndLine = 53, locEndCol = 13}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 59, locStartCol = 7, locEndLine = 59, locEndCol = 13}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}" }, { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 53, locStartCol = 27, locEndLine = 53, locEndCol = 30}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 17, locStartCol = 3, locEndLine = 17, locEndCol = 6}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 59, locStartCol = 27, locEndLine = 59, locEndCol = 30}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 23, locStartCol = 3, locEndLine = 23, locEndCol = 6}" } ] }, @@ -341,17 +341,17 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 54, locStartCol = 7, locEndLine = 54, locEndCol = 20}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 60, locStartCol = 7, locEndLine = 60, locEndCol = 20}" ], "type": { "name": "Number_Pseudo" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 54, locStartCol = 1, locEndLine = 54, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 54, locStartCol = 21, locEndLine = 54, locEndCol = 44}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 60, locStartCol = 1, locEndLine = 60, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 60, locStartCol = 21, locEndLine = 60, locEndCol = 44}", "name": "scoped_pseudoenum_value", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 26, locStartCol = 6, locEndLine = 26, locEndCol = 19}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 32, locStartCol = 6, locEndLine = 32, locEndCol = 19}", "name": { "name": "Number_Pseudo" }, @@ -367,12 +367,12 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 54, locStartCol = 7, locEndLine = 54, locEndCol = 20}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 26, locStartCol = 6, locEndLine = 26, locEndCol = 19}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 60, locStartCol = 7, locEndLine = 60, locEndCol = 20}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 32, locStartCol = 6, locEndLine = 32, locEndCol = 19}" }, { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 54, locStartCol = 47, locEndLine = 54, locEndCol = 65}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 27, locStartCol = 3, locEndLine = 27, locEndCol = 7}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 60, locStartCol = 47, locEndLine = 60, locEndCol = 65}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 33, locStartCol = 3, locEndLine = 33, locEndCol = 7}" } ] }, @@ -380,17 +380,17 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 55, locStartCol = 7, locEndLine = 55, locEndCol = 20}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 61, locStartCol = 7, locEndLine = 61, locEndCol = 20}" ], "type": { "name": "Number_Pseudo" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 55, locStartCol = 1, locEndLine = 55, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 55, locStartCol = 21, locEndLine = 55, locEndCol = 37}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 61, locStartCol = 1, locEndLine = 61, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 61, locStartCol = 21, locEndLine = 61, locEndCol = 37}", "name": "pseudoenum_value", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 26, locStartCol = 6, locEndLine = 26, locEndCol = 19}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 32, locStartCol = 6, locEndLine = 32, locEndCol = 19}", "name": { "name": "Number_Pseudo" }, @@ -406,12 +406,12 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 55, locStartCol = 7, locEndLine = 55, locEndCol = 20}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 26, locStartCol = 6, locEndLine = 26, locEndCol = 19}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 61, locStartCol = 7, locEndLine = 61, locEndCol = 20}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 32, locStartCol = 6, locEndLine = 32, locEndCol = 19}" }, { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 55, locStartCol = 40, locEndLine = 55, locEndCol = 44}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 28, locStartCol = 3, locEndLine = 28, locEndCol = 7}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 61, locStartCol = 40, locEndLine = 61, locEndCol = 44}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 34, locStartCol = 3, locEndLine = 34, locEndCol = 7}" } ] }, @@ -419,15 +419,15 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 58, locStartCol = 7, locEndLine = 58, locEndCol = 11}", - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 58, locStartCol = 11, locEndLine = 58, locEndCol = 12}", - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 58, locStartCol = 15, locEndLine = 58, locEndCol = 16}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 64, locStartCol = 7, locEndLine = 64, locEndCol = 11}", + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 64, locStartCol = 11, locEndLine = 64, locEndCol = 12}", + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 64, locStartCol = 15, locEndLine = 64, locEndCol = 16}" ], "type": { "inner_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 58, locStartCol = 12, locEndLine = 58, locEndCol = 15}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 64, locStartCol = 12, locEndLine = 64, locEndCol = 15}" ], "type": { "type": "i64" @@ -436,8 +436,8 @@ "type": "list" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 58, locStartCol = 1, locEndLine = 58, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 58, locStartCol = 17, locEndLine = 58, locEndCol = 27}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 64, locStartCol = 1, locEndLine = 64, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 64, locStartCol = 17, locEndLine = 64, locEndCol = 27}", "name": "list_value", "type": { "inner_type": { @@ -470,15 +470,15 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 59, locStartCol = 7, locEndLine = 59, locEndCol = 10}", - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 59, locStartCol = 10, locEndLine = 59, locEndCol = 11}", - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 59, locStartCol = 17, locEndLine = 59, locEndCol = 18}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 65, locStartCol = 7, locEndLine = 65, locEndCol = 10}", + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 65, locStartCol = 10, locEndLine = 65, locEndCol = 11}", + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 65, locStartCol = 17, locEndLine = 65, locEndCol = 18}" ], "type": { "inner_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 59, locStartCol = 11, locEndLine = 59, locEndCol = 17}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 65, locStartCol = 11, locEndLine = 65, locEndCol = 17}" ], "type": { "type": "string" @@ -487,8 +487,8 @@ "type": "set" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 59, locStartCol = 1, locEndLine = 59, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 59, locStartCol = 19, locEndLine = 59, locEndCol = 28}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 65, locStartCol = 1, locEndLine = 65, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 65, locStartCol = 19, locEndLine = 65, locEndCol = 28}", "name": "set_value", "type": { "inner_type": { @@ -520,16 +520,16 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 62, locStartCol = 7, locEndLine = 62, locEndCol = 10}", - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 62, locStartCol = 10, locEndLine = 62, locEndCol = 11}", - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 62, locStartCol = 14, locEndLine = 62, locEndCol = 15}", - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 62, locStartCol = 20, locEndLine = 62, locEndCol = 21}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 68, locStartCol = 7, locEndLine = 68, locEndCol = 10}", + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 68, locStartCol = 10, locEndLine = 68, locEndCol = 11}", + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 68, locStartCol = 14, locEndLine = 68, locEndCol = 15}", + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 68, locStartCol = 20, locEndLine = 68, locEndCol = 21}" ], "type": { "key_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 62, locStartCol = 11, locEndLine = 62, locEndCol = 14}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 68, locStartCol = 11, locEndLine = 68, locEndCol = 14}" ], "type": { "type": "i64" @@ -539,7 +539,7 @@ "val_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 62, locStartCol = 16, locEndLine = 62, locEndCol = 20}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 68, locStartCol = 16, locEndLine = 68, locEndCol = 20}" ], "type": { "type": "bool" @@ -547,8 +547,8 @@ } } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 62, locStartCol = 1, locEndLine = 62, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 62, locStartCol = 22, locEndLine = 62, locEndCol = 31}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 68, locStartCol = 1, locEndLine = 68, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 68, locStartCol = 22, locEndLine = 68, locEndCol = 31}", "name": "map_value", "type": { "key_type": { @@ -602,14 +602,14 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 63, locStartCol = 7, locEndLine = 63, locEndCol = 29}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 69, locStartCol = 7, locEndLine = 69, locEndCol = 29}" ], "type": { "name": "map_string_string_6258" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 63, locStartCol = 1, locEndLine = 63, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 63, locStartCol = 30, locEndLine = 63, locEndCol = 44}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 69, locStartCol = 1, locEndLine = 69, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 69, locStartCol = 30, locEndLine = 69, locEndCol = 44}", "name": "hash_map_value", "type": { "inner_type": { @@ -621,7 +621,7 @@ "type": "string" } }, - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 51, locEndLine = 74, locEndCol = 73}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 51, locEndLine = 80, locEndCol = 73}", "name": { "name": "map_string_string_6258" }, @@ -664,8 +664,8 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 63, locStartCol = 7, locEndLine = 63, locEndCol = 29}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 51, locEndLine = 74, locEndCol = 73}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 69, locStartCol = 7, locEndLine = 69, locEndCol = 29}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 51, locEndLine = 80, locEndCol = 73}" } ] }, @@ -673,17 +673,17 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 65, locStartCol = 7, locEndLine = 65, locEndCol = 8}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 71, locStartCol = 7, locEndLine = 71, locEndCol = 8}" ], "type": { "name": "B" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 65, locStartCol = 1, locEndLine = 65, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 65, locStartCol = 9, locEndLine = 65, locEndCol = 21}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 71, locStartCol = 1, locEndLine = 71, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 71, locStartCol = 9, locEndLine = 71, locEndCol = 21}", "name": "struct_value", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}", "name": { "name": "B" }, @@ -735,8 +735,8 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 65, locStartCol = 7, locEndLine = 65, locEndCol = 8}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 71, locStartCol = 7, locEndLine = 71, locEndCol = 8}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}" } ] }, @@ -744,17 +744,17 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 66, locStartCol = 7, locEndLine = 66, locEndCol = 8}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 72, locStartCol = 7, locEndLine = 72, locEndCol = 8}" ], "type": { "name": "B" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 66, locStartCol = 1, locEndLine = 66, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 66, locStartCol = 9, locEndLine = 66, locEndCol = 30}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 72, locStartCol = 1, locEndLine = 72, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 72, locStartCol = 9, locEndLine = 72, locEndCol = 30}", "name": "explicit_struct_value", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}", "name": { "name": "B" }, @@ -806,8 +806,8 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 66, locStartCol = 7, locEndLine = 66, locEndCol = 8}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 72, locStartCol = 7, locEndLine = 72, locEndCol = 8}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}" } ] }, @@ -815,17 +815,17 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 67, locStartCol = 7, locEndLine = 67, locEndCol = 8}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 73, locStartCol = 7, locEndLine = 73, locEndCol = 8}" ], "type": { "name": "C" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 67, locStartCol = 1, locEndLine = 67, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 67, locStartCol = 9, locEndLine = 67, locEndCol = 37}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 73, locStartCol = 1, locEndLine = 73, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 73, locStartCol = 9, locEndLine = 73, locEndCol = 37}", "name": "explicit_nested_struct_value", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 8, locEndLine = 15, locEndCol = 9}", "name": { "name": "C" }, @@ -839,7 +839,7 @@ "field_name": "x", "field_type": { "inner_type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}", "name": { "name": "Number" }, @@ -858,7 +858,7 @@ "field_name": "y", "field_type": { "inner_type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 22, locStartCol = 6, locEndLine = 22, locEndCol = 19}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 28, locStartCol = 6, locEndLine = 28, locEndCol = 19}", "name": { "name": "Number_Strict" }, @@ -876,7 +876,7 @@ { "field_name": "z", "field_type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}", "name": { "name": "B" }, @@ -932,8 +932,8 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 67, locStartCol = 7, locEndLine = 67, locEndCol = 8}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 73, locStartCol = 7, locEndLine = 73, locEndCol = 8}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 8, locEndLine = 15, locEndCol = 9}" } ] } @@ -942,85 +942,85 @@ { "constants": [ { - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 16, locStartCol = 3, locEndLine = 16, locEndCol = 7}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 22, locStartCol = 3, locEndLine = 22, locEndCol = 7}", "name": "Zero", "value": 0 }, { - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 17, locStartCol = 3, locEndLine = 17, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 23, locStartCol = 3, locEndLine = 23, locEndCol = 6}", "name": "One", "value": 1 }, { - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 18, locStartCol = 3, locEndLine = 18, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 24, locStartCol = 3, locEndLine = 24, locEndCol = 6}", "name": "Two", "value": 2 }, { - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 19, locStartCol = 3, locEndLine = 19, locEndCol = 8}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 25, locStartCol = 3, locEndLine = 25, locEndCol = 8}", "name": "Three", "value": 3 } ], "flavour": "sum_type", - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 1, locEndLine = 15, locEndCol = 5}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 1, locEndLine = 21, locEndCol = 5}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}", "name": "Number" }, { "constants": [ { - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 23, locStartCol = 3, locEndLine = 23, locEndCol = 7}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 29, locStartCol = 3, locEndLine = 29, locEndCol = 7}", "name": "Zero", "value": 0 } ], "flavour": "sum_type", - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 22, locStartCol = 1, locEndLine = 22, locEndCol = 5}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 22, locStartCol = 6, locEndLine = 22, locEndCol = 19}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 28, locStartCol = 1, locEndLine = 28, locEndCol = 5}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 28, locStartCol = 6, locEndLine = 28, locEndCol = 19}", "name": "Number_Strict" }, { "constants": [ { - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 27, locStartCol = 3, locEndLine = 27, locEndCol = 7}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 33, locStartCol = 3, locEndLine = 33, locEndCol = 7}", "name": "Zero", "value": 0 }, { - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 28, locStartCol = 3, locEndLine = 28, locEndCol = 7}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 34, locStartCol = 3, locEndLine = 34, locEndCol = 7}", "name": "Four", "value": 4 } ], "flavour": "sum_type", - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 26, locStartCol = 1, locEndLine = 26, locEndCol = 5}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 26, locStartCol = 6, locEndLine = 26, locEndCol = 19}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 32, locStartCol = 1, locEndLine = 32, locEndCol = 5}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 32, locStartCol = 6, locEndLine = 32, locEndCol = 19}", "name": "Number_Pseudo" }, { "constants": [ { - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 32, locStartCol = 3, locEndLine = 32, locEndCol = 7}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 38, locStartCol = 3, locEndLine = 38, locEndCol = 7}", "name": "Five", "value": 5 }, { - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 33, locStartCol = 3, locEndLine = 33, locEndCol = 7}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 39, locStartCol = 3, locEndLine = 39, locEndCol = 7}", "name": "Zero", "value": 0 } ], "flavour": "sum_type", - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 31, locStartCol = 1, locEndLine = 31, locEndCol = 5}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 31, locStartCol = 6, locEndLine = 31, locEndCol = 26}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 37, locStartCol = 1, locEndLine = 37, locEndCol = 5}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 37, locStartCol = 6, locEndLine = 37, locEndCol = 26}", "name": "Number_Discontinuous" }, { "constants": [], "flavour": "sum_type", - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 36, locStartCol = 1, locEndLine = 36, locEndCol = 5}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 36, locStartCol = 6, locEndLine = 36, locEndCol = 18}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 42, locStartCol = 1, locEndLine = 42, locEndCol = 5}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 42, locStartCol = 6, locEndLine = 42, locEndCol = 18}", "name": "Number_Empty" } ], @@ -1046,7 +1046,7 @@ } }, "id": 1, - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 4, locStartCol = 10, locEndLine = 4, locEndCol = 11}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 10, locStartCol = 10, locEndLine = 10, locEndCol = 11}", "name": "a", "requiredness": "default", "type": { @@ -1056,7 +1056,7 @@ }, { "id": 2, - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 5, locStartCol = 10, locEndLine = 5, locEndCol = 11}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 11, locStartCol = 10, locEndLine = 11, locEndCol = 11}", "name": "b", "requiredness": "default", "type": { @@ -1066,7 +1066,7 @@ }, { "id": 3, - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 6, locStartCol = 10, locEndLine = 6, locEndCol = 11}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 12, locStartCol = 10, locEndLine = 12, locEndCol = 11}", "name": "c", "requiredness": "default", "type": { @@ -1075,8 +1075,8 @@ "xref": [] } ], - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 1, locEndLine = 3, locEndCol = 7}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 1, locEndLine = 9, locEndCol = 7}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}", "name": "B", "struct_type": "STRUCT" }, @@ -1084,12 +1084,12 @@ "fields": [ { "id": 1, - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 10, locStartCol = 19, locEndLine = 10, locEndCol = 20}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 16, locStartCol = 19, locEndLine = 16, locEndCol = 20}", "name": "x", "requiredness": "default", "type": { "inner_type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}", "name": { "name": "Number" }, @@ -1099,19 +1099,19 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 10, locStartCol = 11, locEndLine = 10, locEndCol = 17}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 16, locStartCol = 11, locEndLine = 16, locEndCol = 17}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}" } ] }, { "id": 2, - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 11, locStartCol = 26, locEndLine = 11, locEndCol = 27}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 17, locStartCol = 26, locEndLine = 17, locEndCol = 27}", "name": "y", "requiredness": "default", "type": { "inner_type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 22, locStartCol = 6, locEndLine = 22, locEndCol = 19}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 28, locStartCol = 6, locEndLine = 28, locEndCol = 19}", "name": { "name": "Number_Strict" }, @@ -1121,18 +1121,18 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 11, locStartCol = 11, locEndLine = 11, locEndCol = 24}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 22, locStartCol = 6, locEndLine = 22, locEndCol = 19}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 17, locStartCol = 11, locEndLine = 17, locEndCol = 24}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 28, locStartCol = 6, locEndLine = 28, locEndCol = 19}" } ] }, { "id": 3, - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 12, locStartCol = 8, locEndLine = 12, locEndCol = 9}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 18, locStartCol = 8, locEndLine = 18, locEndCol = 9}", "name": "z", "requiredness": "default", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}", "name": { "name": "B" }, @@ -1140,14 +1140,14 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 12, locStartCol = 6, locEndLine = 12, locEndCol = 7}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 18, locStartCol = 6, locEndLine = 18, locEndCol = 7}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}" } ] } ], - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 1, locEndLine = 9, locEndCol = 7}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 1, locEndLine = 15, locEndCol = 7}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 8, locEndLine = 15, locEndCol = 9}", "name": "C", "struct_type": "STRUCT" } @@ -1157,7 +1157,7 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 39, locStartCol = 9, locEndLine = 39, locEndCol = 12}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 9, locEndLine = 45, locEndCol = 12}" ], "type": { "type": "i64" @@ -1168,17 +1168,17 @@ { "ann_tag": "hs.newtype", "ann_type": "SimpleAnn", - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 39, locStartCol = 18, locEndLine = 39, locEndCol = 28}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 18, locEndLine = 45, locEndCol = 28}", "sep": { "sep_type": "NoSep" } } ], - "loc_close": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 39, locStartCol = 28, locEndLine = 39, locEndCol = 29}", - "loc_open": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 39, locStartCol = 17, locEndLine = 39, locEndCol = 18}" + "loc_close": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 28, locEndLine = 45, locEndCol = 29}", + "loc_open": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 17, locEndLine = 45, locEndCol = 18}" }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 39, locStartCol = 1, locEndLine = 39, locEndCol = 8}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 39, locStartCol = 13, locEndLine = 39, locEndCol = 16}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 1, locEndLine = 45, locEndCol = 8}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 13, locEndLine = 45, locEndCol = 16}", "name": "Int", "newtype": true, "type": { @@ -1192,9 +1192,9 @@ "loc_ann_list": [ { "ann_type": "ValueAnn", - "loc_equal": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 38, locEndLine = 74, locEndCol = 39}", - "loc_tag": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 30, locEndLine = 74, locEndCol = 37}", - "loc_val": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 40, locEndLine = 74, locEndCol = 49}", + "loc_equal": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 38, locEndLine = 80, locEndCol = 39}", + "loc_tag": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 30, locEndLine = 80, locEndCol = 37}", + "loc_val": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 40, locEndLine = 80, locEndCol = 49}", "sep": { "sep_type": "NoSep" }, @@ -1206,20 +1206,20 @@ } } ], - "loc_close": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 49, locEndLine = 74, locEndCol = 50}", - "loc_open": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 29, locEndLine = 74, locEndCol = 30}" + "loc_close": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 49, locEndLine = 80, locEndCol = 50}", + "loc_open": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 29, locEndLine = 80, locEndCol = 30}" }, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 9, locEndLine = 74, locEndCol = 12}", - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 12, locEndLine = 74, locEndCol = 13}", - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 19, locEndLine = 74, locEndCol = 20}", - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 27, locEndLine = 74, locEndCol = 28}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 9, locEndLine = 80, locEndCol = 12}", + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 12, locEndLine = 80, locEndCol = 13}", + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 19, locEndLine = 80, locEndCol = 20}", + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 27, locEndLine = 80, locEndCol = 28}" ], "type": { "key_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 13, locEndLine = 74, locEndCol = 19}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 13, locEndLine = 80, locEndCol = 19}" ], "type": { "type": "string" @@ -1229,7 +1229,7 @@ "val_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 21, locEndLine = 74, locEndCol = 27}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 21, locEndLine = 80, locEndCol = 27}" ], "type": { "type": "string" @@ -1238,8 +1238,8 @@ } }, "anns": null, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 1, locEndLine = 74, locEndCol = 8}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 51, locEndLine = 74, locEndCol = 73}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 1, locEndLine = 80, locEndCol = 8}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 51, locEndLine = 80, locEndCol = 73}", "name": "map_string_string_6258", "newtype": false, "type": { diff --git a/compiler/test/fixtures/gen-single-out-loc/a.ast b/compiler/test/fixtures/gen-single-out-loc/a.ast index 09050ee9..0fa40550 100644 --- a/compiler/test/fixtures/gen-single-out-loc/a.ast +++ b/compiler/test/fixtures/gen-single-out-loc/a.ast @@ -37,7 +37,7 @@ }, { "aLoc": "Loc {locFile = \"test/if/a.thrift\", locStartLine = 9, locStartCol = 13, locEndLine = 9, locEndCol = 24}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 11, locEndLine = 45, locEndCol = 20}" + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 51, locStartCol = 11, locEndLine = 51, locEndCol = 20}" } ] }, @@ -109,7 +109,7 @@ "loc_name": "Loc {locFile = \"test/if/a.thrift\", locStartLine = 34, locStartCol = 11, locEndLine = 34, locEndCol = 12}", "name": "b", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}", "name": { "name": "B", "src": "b" @@ -162,7 +162,7 @@ "xref": [ { "aLoc": "Loc {locFile = \"test/if/a.thrift\", locStartLine = 34, locStartCol = 7, locEndLine = 34, locEndCol = 10}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}" + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}" } ] }, @@ -180,7 +180,7 @@ "loc_name": "Loc {locFile = \"test/if/a.thrift\", locStartLine = 36, locStartCol = 11, locEndLine = 36, locEndCol = 20}", "name": "default_d", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}", "name": { "name": "B", "src": "b" @@ -224,7 +224,7 @@ "xref": [ { "aLoc": "Loc {locFile = \"test/if/a.thrift\", locStartLine = 36, locStartCol = 7, locEndLine = 36, locEndCol = 10}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}" + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}" } ] }, @@ -242,7 +242,7 @@ "loc_name": "Loc {locFile = \"test/if/a.thrift\", locStartLine = 38, locStartCol = 16, locEndLine = 38, locEndCol = 20}", "name": "zero", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}", "name": { "name": "Number", "src": "b" @@ -261,11 +261,11 @@ "xref": [ { "aLoc": "Loc {locFile = \"test/if/a.thrift\", locStartLine = 38, locStartCol = 7, locEndLine = 38, locEndCol = 15}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}" + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}" }, { "aLoc": "Loc {locFile = \"test/if/a.thrift\", locStartLine = 38, locStartCol = 23, locEndLine = 38, locEndCol = 29}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 16, locStartCol = 3, locEndLine = 16, locEndCol = 7}" + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 22, locStartCol = 3, locEndLine = 22, locEndCol = 7}" } ] } @@ -302,7 +302,7 @@ "name": "getNumber", "oneway": false, "return_type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}", "name": { "name": "Number", "src": "b" @@ -413,7 +413,7 @@ "name": "b", "requiredness": "default", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}", "name": { "name": "B", "src": "b" @@ -423,7 +423,7 @@ "xref": [ { "aLoc": "Loc {locFile = \"test/if/a.thrift\", locStartLine = 13, locStartCol = 6, locEndLine = 13, locEndCol = 9}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}" + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}" } ] }, @@ -490,7 +490,7 @@ "name": "f", "requiredness": "default", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}", "name": { "name": "Number", "src": "b" @@ -500,7 +500,7 @@ "xref": [ { "aLoc": "Loc {locFile = \"test/if/a.thrift\", locStartLine = 17, locStartCol = 6, locEndLine = 17, locEndCol = 14}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}" + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}" } ] }, @@ -617,14 +617,14 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 42, locStartCol = 7, locEndLine = 42, locEndCol = 11}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 48, locStartCol = 7, locEndLine = 48, locEndCol = 11}" ], "type": { "type": "byte" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 42, locStartCol = 1, locEndLine = 42, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 42, locStartCol = 12, locEndLine = 42, locEndCol = 22}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 48, locStartCol = 1, locEndLine = 48, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 48, locStartCol = 12, locEndLine = 48, locEndCol = 22}", "name": "byte_value", "type": { "type": "byte" @@ -641,14 +641,14 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 43, locStartCol = 7, locEndLine = 43, locEndCol = 10}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 49, locStartCol = 7, locEndLine = 49, locEndCol = 10}" ], "type": { "type": "i16" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 43, locStartCol = 1, locEndLine = 43, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 43, locStartCol = 11, locEndLine = 43, locEndCol = 20}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 49, locStartCol = 1, locEndLine = 49, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 49, locStartCol = 11, locEndLine = 49, locEndCol = 20}", "name": "i16_value", "type": { "type": "i16" @@ -665,14 +665,14 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 44, locStartCol = 7, locEndLine = 44, locEndCol = 10}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 50, locStartCol = 7, locEndLine = 50, locEndCol = 10}" ], "type": { "type": "i32" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 44, locStartCol = 1, locEndLine = 44, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 44, locStartCol = 11, locEndLine = 44, locEndCol = 20}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 50, locStartCol = 1, locEndLine = 50, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 50, locStartCol = 11, locEndLine = 50, locEndCol = 20}", "name": "i32_value", "type": { "type": "i32" @@ -689,14 +689,14 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 7, locEndLine = 45, locEndCol = 10}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 51, locStartCol = 7, locEndLine = 51, locEndCol = 10}" ], "type": { "type": "i64" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 1, locEndLine = 45, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 11, locEndLine = 45, locEndCol = 20}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 51, locStartCol = 1, locEndLine = 51, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 51, locStartCol = 11, locEndLine = 51, locEndCol = 20}", "name": "i64_value", "type": { "type": "i64" @@ -714,14 +714,14 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 46, locStartCol = 7, locEndLine = 46, locEndCol = 12}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 52, locStartCol = 7, locEndLine = 52, locEndCol = 12}" ], "type": { "type": "float" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 46, locStartCol = 1, locEndLine = 46, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 46, locStartCol = 13, locEndLine = 46, locEndCol = 24}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 52, locStartCol = 1, locEndLine = 52, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 52, locStartCol = 13, locEndLine = 52, locEndCol = 24}", "name": "float_value", "type": { "type": "float" @@ -739,14 +739,14 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 47, locStartCol = 7, locEndLine = 47, locEndCol = 13}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 53, locStartCol = 7, locEndLine = 53, locEndCol = 13}" ], "type": { "type": "double" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 47, locStartCol = 1, locEndLine = 47, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 47, locStartCol = 14, locEndLine = 47, locEndCol = 26}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 53, locStartCol = 1, locEndLine = 53, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 53, locStartCol = 14, locEndLine = 53, locEndCol = 26}", "name": "double_value", "type": { "type": "double" @@ -764,14 +764,14 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 48, locStartCol = 7, locEndLine = 48, locEndCol = 11}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 54, locStartCol = 7, locEndLine = 54, locEndCol = 11}" ], "type": { "type": "bool" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 48, locStartCol = 1, locEndLine = 48, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 48, locStartCol = 12, locEndLine = 48, locEndCol = 22}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 54, locStartCol = 1, locEndLine = 54, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 54, locStartCol = 12, locEndLine = 54, locEndCol = 22}", "name": "bool_value", "type": { "type": "bool" @@ -788,14 +788,14 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 49, locStartCol = 7, locEndLine = 49, locEndCol = 13}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 55, locStartCol = 7, locEndLine = 55, locEndCol = 13}" ], "type": { "type": "string" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 49, locStartCol = 1, locEndLine = 49, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 49, locStartCol = 14, locEndLine = 49, locEndCol = 26}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 55, locStartCol = 1, locEndLine = 55, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 55, locStartCol = 14, locEndLine = 55, locEndCol = 26}", "name": "string_value", "type": { "type": "string" @@ -812,14 +812,14 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 50, locStartCol = 7, locEndLine = 50, locEndCol = 13}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 56, locStartCol = 7, locEndLine = 56, locEndCol = 13}" ], "type": { "type": "binary" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 50, locStartCol = 1, locEndLine = 50, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 50, locStartCol = 14, locEndLine = 50, locEndCol = 26}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 56, locStartCol = 1, locEndLine = 56, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 56, locStartCol = 14, locEndLine = 56, locEndCol = 26}", "name": "binary_value", "type": { "type": "binary" @@ -836,20 +836,20 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 51, locStartCol = 7, locEndLine = 51, locEndCol = 10}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 57, locStartCol = 7, locEndLine = 57, locEndCol = 10}" ], "type": { "name": "Int" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 51, locStartCol = 1, locEndLine = 51, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 51, locStartCol = 11, locEndLine = 51, locEndCol = 24}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 57, locStartCol = 1, locEndLine = 57, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 57, locStartCol = 11, locEndLine = 57, locEndCol = 24}", "name": "newtype_value", "type": { "inner_type": { "type": "i64" }, - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 39, locStartCol = 13, locEndLine = 39, locEndCol = 16}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 13, locEndLine = 45, locEndCol = 16}", "name": { "name": "Int" }, @@ -867,8 +867,8 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 51, locStartCol = 7, locEndLine = 51, locEndCol = 10}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 39, locStartCol = 13, locEndLine = 39, locEndCol = 16}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 57, locStartCol = 7, locEndLine = 57, locEndCol = 10}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 13, locEndLine = 45, locEndCol = 16}" } ] }, @@ -876,17 +876,17 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 52, locStartCol = 7, locEndLine = 52, locEndCol = 13}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 58, locStartCol = 7, locEndLine = 58, locEndCol = 13}" ], "type": { "name": "Number" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 52, locStartCol = 1, locEndLine = 52, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 52, locStartCol = 14, locEndLine = 52, locEndCol = 31}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 58, locStartCol = 1, locEndLine = 58, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 58, locStartCol = 14, locEndLine = 58, locEndCol = 31}", "name": "scoped_enum_value", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}", "name": { "name": "Number" }, @@ -902,12 +902,12 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 52, locStartCol = 7, locEndLine = 52, locEndCol = 13}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 58, locStartCol = 7, locEndLine = 58, locEndCol = 13}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}" }, { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 52, locStartCol = 34, locEndLine = 52, locEndCol = 45}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 16, locStartCol = 3, locEndLine = 16, locEndCol = 7}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 58, locStartCol = 34, locEndLine = 58, locEndCol = 45}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 22, locStartCol = 3, locEndLine = 22, locEndCol = 7}" } ] }, @@ -915,17 +915,17 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 53, locStartCol = 7, locEndLine = 53, locEndCol = 13}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 59, locStartCol = 7, locEndLine = 59, locEndCol = 13}" ], "type": { "name": "Number" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 53, locStartCol = 1, locEndLine = 53, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 53, locStartCol = 14, locEndLine = 53, locEndCol = 24}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 59, locStartCol = 1, locEndLine = 59, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 59, locStartCol = 14, locEndLine = 59, locEndCol = 24}", "name": "enum_value", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}", "name": { "name": "Number" }, @@ -941,12 +941,12 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 53, locStartCol = 7, locEndLine = 53, locEndCol = 13}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 59, locStartCol = 7, locEndLine = 59, locEndCol = 13}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}" }, { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 53, locStartCol = 27, locEndLine = 53, locEndCol = 30}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 17, locStartCol = 3, locEndLine = 17, locEndCol = 6}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 59, locStartCol = 27, locEndLine = 59, locEndCol = 30}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 23, locStartCol = 3, locEndLine = 23, locEndCol = 6}" } ] }, @@ -954,17 +954,17 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 54, locStartCol = 7, locEndLine = 54, locEndCol = 20}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 60, locStartCol = 7, locEndLine = 60, locEndCol = 20}" ], "type": { "name": "Number_Pseudo" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 54, locStartCol = 1, locEndLine = 54, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 54, locStartCol = 21, locEndLine = 54, locEndCol = 44}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 60, locStartCol = 1, locEndLine = 60, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 60, locStartCol = 21, locEndLine = 60, locEndCol = 44}", "name": "scoped_pseudoenum_value", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 26, locStartCol = 6, locEndLine = 26, locEndCol = 19}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 32, locStartCol = 6, locEndLine = 32, locEndCol = 19}", "name": { "name": "Number_Pseudo" }, @@ -980,12 +980,12 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 54, locStartCol = 7, locEndLine = 54, locEndCol = 20}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 26, locStartCol = 6, locEndLine = 26, locEndCol = 19}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 60, locStartCol = 7, locEndLine = 60, locEndCol = 20}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 32, locStartCol = 6, locEndLine = 32, locEndCol = 19}" }, { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 54, locStartCol = 47, locEndLine = 54, locEndCol = 65}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 27, locStartCol = 3, locEndLine = 27, locEndCol = 7}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 60, locStartCol = 47, locEndLine = 60, locEndCol = 65}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 33, locStartCol = 3, locEndLine = 33, locEndCol = 7}" } ] }, @@ -993,17 +993,17 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 55, locStartCol = 7, locEndLine = 55, locEndCol = 20}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 61, locStartCol = 7, locEndLine = 61, locEndCol = 20}" ], "type": { "name": "Number_Pseudo" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 55, locStartCol = 1, locEndLine = 55, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 55, locStartCol = 21, locEndLine = 55, locEndCol = 37}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 61, locStartCol = 1, locEndLine = 61, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 61, locStartCol = 21, locEndLine = 61, locEndCol = 37}", "name": "pseudoenum_value", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 26, locStartCol = 6, locEndLine = 26, locEndCol = 19}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 32, locStartCol = 6, locEndLine = 32, locEndCol = 19}", "name": { "name": "Number_Pseudo" }, @@ -1019,12 +1019,12 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 55, locStartCol = 7, locEndLine = 55, locEndCol = 20}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 26, locStartCol = 6, locEndLine = 26, locEndCol = 19}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 61, locStartCol = 7, locEndLine = 61, locEndCol = 20}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 32, locStartCol = 6, locEndLine = 32, locEndCol = 19}" }, { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 55, locStartCol = 40, locEndLine = 55, locEndCol = 44}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 28, locStartCol = 3, locEndLine = 28, locEndCol = 7}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 61, locStartCol = 40, locEndLine = 61, locEndCol = 44}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 34, locStartCol = 3, locEndLine = 34, locEndCol = 7}" } ] }, @@ -1032,15 +1032,15 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 58, locStartCol = 7, locEndLine = 58, locEndCol = 11}", - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 58, locStartCol = 11, locEndLine = 58, locEndCol = 12}", - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 58, locStartCol = 15, locEndLine = 58, locEndCol = 16}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 64, locStartCol = 7, locEndLine = 64, locEndCol = 11}", + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 64, locStartCol = 11, locEndLine = 64, locEndCol = 12}", + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 64, locStartCol = 15, locEndLine = 64, locEndCol = 16}" ], "type": { "inner_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 58, locStartCol = 12, locEndLine = 58, locEndCol = 15}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 64, locStartCol = 12, locEndLine = 64, locEndCol = 15}" ], "type": { "type": "i64" @@ -1049,8 +1049,8 @@ "type": "list" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 58, locStartCol = 1, locEndLine = 58, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 58, locStartCol = 17, locEndLine = 58, locEndCol = 27}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 64, locStartCol = 1, locEndLine = 64, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 64, locStartCol = 17, locEndLine = 64, locEndCol = 27}", "name": "list_value", "type": { "inner_type": { @@ -1083,15 +1083,15 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 59, locStartCol = 7, locEndLine = 59, locEndCol = 10}", - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 59, locStartCol = 10, locEndLine = 59, locEndCol = 11}", - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 59, locStartCol = 17, locEndLine = 59, locEndCol = 18}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 65, locStartCol = 7, locEndLine = 65, locEndCol = 10}", + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 65, locStartCol = 10, locEndLine = 65, locEndCol = 11}", + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 65, locStartCol = 17, locEndLine = 65, locEndCol = 18}" ], "type": { "inner_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 59, locStartCol = 11, locEndLine = 59, locEndCol = 17}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 65, locStartCol = 11, locEndLine = 65, locEndCol = 17}" ], "type": { "type": "string" @@ -1100,8 +1100,8 @@ "type": "set" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 59, locStartCol = 1, locEndLine = 59, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 59, locStartCol = 19, locEndLine = 59, locEndCol = 28}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 65, locStartCol = 1, locEndLine = 65, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 65, locStartCol = 19, locEndLine = 65, locEndCol = 28}", "name": "set_value", "type": { "inner_type": { @@ -1133,16 +1133,16 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 62, locStartCol = 7, locEndLine = 62, locEndCol = 10}", - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 62, locStartCol = 10, locEndLine = 62, locEndCol = 11}", - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 62, locStartCol = 14, locEndLine = 62, locEndCol = 15}", - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 62, locStartCol = 20, locEndLine = 62, locEndCol = 21}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 68, locStartCol = 7, locEndLine = 68, locEndCol = 10}", + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 68, locStartCol = 10, locEndLine = 68, locEndCol = 11}", + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 68, locStartCol = 14, locEndLine = 68, locEndCol = 15}", + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 68, locStartCol = 20, locEndLine = 68, locEndCol = 21}" ], "type": { "key_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 62, locStartCol = 11, locEndLine = 62, locEndCol = 14}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 68, locStartCol = 11, locEndLine = 68, locEndCol = 14}" ], "type": { "type": "i64" @@ -1152,7 +1152,7 @@ "val_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 62, locStartCol = 16, locEndLine = 62, locEndCol = 20}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 68, locStartCol = 16, locEndLine = 68, locEndCol = 20}" ], "type": { "type": "bool" @@ -1160,8 +1160,8 @@ } } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 62, locStartCol = 1, locEndLine = 62, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 62, locStartCol = 22, locEndLine = 62, locEndCol = 31}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 68, locStartCol = 1, locEndLine = 68, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 68, locStartCol = 22, locEndLine = 68, locEndCol = 31}", "name": "map_value", "type": { "key_type": { @@ -1215,14 +1215,14 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 63, locStartCol = 7, locEndLine = 63, locEndCol = 29}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 69, locStartCol = 7, locEndLine = 69, locEndCol = 29}" ], "type": { "name": "map_string_string_6258" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 63, locStartCol = 1, locEndLine = 63, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 63, locStartCol = 30, locEndLine = 63, locEndCol = 44}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 69, locStartCol = 1, locEndLine = 69, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 69, locStartCol = 30, locEndLine = 69, locEndCol = 44}", "name": "hash_map_value", "type": { "inner_type": { @@ -1234,7 +1234,7 @@ "type": "string" } }, - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 51, locEndLine = 74, locEndCol = 73}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 51, locEndLine = 80, locEndCol = 73}", "name": { "name": "map_string_string_6258" }, @@ -1277,8 +1277,8 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 63, locStartCol = 7, locEndLine = 63, locEndCol = 29}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 51, locEndLine = 74, locEndCol = 73}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 69, locStartCol = 7, locEndLine = 69, locEndCol = 29}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 51, locEndLine = 80, locEndCol = 73}" } ] }, @@ -1286,17 +1286,17 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 65, locStartCol = 7, locEndLine = 65, locEndCol = 8}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 71, locStartCol = 7, locEndLine = 71, locEndCol = 8}" ], "type": { "name": "B" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 65, locStartCol = 1, locEndLine = 65, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 65, locStartCol = 9, locEndLine = 65, locEndCol = 21}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 71, locStartCol = 1, locEndLine = 71, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 71, locStartCol = 9, locEndLine = 71, locEndCol = 21}", "name": "struct_value", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}", "name": { "name": "B" }, @@ -1348,8 +1348,8 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 65, locStartCol = 7, locEndLine = 65, locEndCol = 8}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 71, locStartCol = 7, locEndLine = 71, locEndCol = 8}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}" } ] }, @@ -1357,17 +1357,17 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 66, locStartCol = 7, locEndLine = 66, locEndCol = 8}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 72, locStartCol = 7, locEndLine = 72, locEndCol = 8}" ], "type": { "name": "B" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 66, locStartCol = 1, locEndLine = 66, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 66, locStartCol = 9, locEndLine = 66, locEndCol = 30}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 72, locStartCol = 1, locEndLine = 72, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 72, locStartCol = 9, locEndLine = 72, locEndCol = 30}", "name": "explicit_struct_value", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}", "name": { "name": "B" }, @@ -1419,8 +1419,8 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 66, locStartCol = 7, locEndLine = 66, locEndCol = 8}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 72, locStartCol = 7, locEndLine = 72, locEndCol = 8}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}" } ] }, @@ -1428,17 +1428,17 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 67, locStartCol = 7, locEndLine = 67, locEndCol = 8}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 73, locStartCol = 7, locEndLine = 73, locEndCol = 8}" ], "type": { "name": "C" } }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 67, locStartCol = 1, locEndLine = 67, locEndCol = 6}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 67, locStartCol = 9, locEndLine = 67, locEndCol = 37}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 73, locStartCol = 1, locEndLine = 73, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 73, locStartCol = 9, locEndLine = 73, locEndCol = 37}", "name": "explicit_nested_struct_value", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 8, locEndLine = 15, locEndCol = 9}", "name": { "name": "C" }, @@ -1452,7 +1452,7 @@ "field_name": "x", "field_type": { "inner_type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}", "name": { "name": "Number" }, @@ -1471,7 +1471,7 @@ "field_name": "y", "field_type": { "inner_type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 22, locStartCol = 6, locEndLine = 22, locEndCol = 19}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 28, locStartCol = 6, locEndLine = 28, locEndCol = 19}", "name": { "name": "Number_Strict" }, @@ -1489,7 +1489,7 @@ { "field_name": "z", "field_type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}", "name": { "name": "B" }, @@ -1545,8 +1545,8 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 67, locStartCol = 7, locEndLine = 67, locEndCol = 8}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 73, locStartCol = 7, locEndLine = 73, locEndCol = 8}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 8, locEndLine = 15, locEndCol = 9}" } ] } @@ -1555,85 +1555,85 @@ { "constants": [ { - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 16, locStartCol = 3, locEndLine = 16, locEndCol = 7}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 22, locStartCol = 3, locEndLine = 22, locEndCol = 7}", "name": "Zero", "value": 0 }, { - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 17, locStartCol = 3, locEndLine = 17, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 23, locStartCol = 3, locEndLine = 23, locEndCol = 6}", "name": "One", "value": 1 }, { - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 18, locStartCol = 3, locEndLine = 18, locEndCol = 6}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 24, locStartCol = 3, locEndLine = 24, locEndCol = 6}", "name": "Two", "value": 2 }, { - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 19, locStartCol = 3, locEndLine = 19, locEndCol = 8}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 25, locStartCol = 3, locEndLine = 25, locEndCol = 8}", "name": "Three", "value": 3 } ], "flavour": "sum_type", - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 1, locEndLine = 15, locEndCol = 5}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 1, locEndLine = 21, locEndCol = 5}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}", "name": "Number" }, { "constants": [ { - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 23, locStartCol = 3, locEndLine = 23, locEndCol = 7}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 29, locStartCol = 3, locEndLine = 29, locEndCol = 7}", "name": "Zero", "value": 0 } ], "flavour": "sum_type", - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 22, locStartCol = 1, locEndLine = 22, locEndCol = 5}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 22, locStartCol = 6, locEndLine = 22, locEndCol = 19}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 28, locStartCol = 1, locEndLine = 28, locEndCol = 5}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 28, locStartCol = 6, locEndLine = 28, locEndCol = 19}", "name": "Number_Strict" }, { "constants": [ { - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 27, locStartCol = 3, locEndLine = 27, locEndCol = 7}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 33, locStartCol = 3, locEndLine = 33, locEndCol = 7}", "name": "Zero", "value": 0 }, { - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 28, locStartCol = 3, locEndLine = 28, locEndCol = 7}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 34, locStartCol = 3, locEndLine = 34, locEndCol = 7}", "name": "Four", "value": 4 } ], "flavour": "sum_type", - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 26, locStartCol = 1, locEndLine = 26, locEndCol = 5}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 26, locStartCol = 6, locEndLine = 26, locEndCol = 19}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 32, locStartCol = 1, locEndLine = 32, locEndCol = 5}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 32, locStartCol = 6, locEndLine = 32, locEndCol = 19}", "name": "Number_Pseudo" }, { "constants": [ { - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 32, locStartCol = 3, locEndLine = 32, locEndCol = 7}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 38, locStartCol = 3, locEndLine = 38, locEndCol = 7}", "name": "Five", "value": 5 }, { - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 33, locStartCol = 3, locEndLine = 33, locEndCol = 7}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 39, locStartCol = 3, locEndLine = 39, locEndCol = 7}", "name": "Zero", "value": 0 } ], "flavour": "sum_type", - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 31, locStartCol = 1, locEndLine = 31, locEndCol = 5}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 31, locStartCol = 6, locEndLine = 31, locEndCol = 26}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 37, locStartCol = 1, locEndLine = 37, locEndCol = 5}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 37, locStartCol = 6, locEndLine = 37, locEndCol = 26}", "name": "Number_Discontinuous" }, { "constants": [], "flavour": "sum_type", - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 36, locStartCol = 1, locEndLine = 36, locEndCol = 5}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 36, locStartCol = 6, locEndLine = 36, locEndCol = 18}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 42, locStartCol = 1, locEndLine = 42, locEndCol = 5}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 42, locStartCol = 6, locEndLine = 42, locEndCol = 18}", "name": "Number_Empty" } ], @@ -1659,7 +1659,7 @@ } }, "id": 1, - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 4, locStartCol = 10, locEndLine = 4, locEndCol = 11}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 10, locStartCol = 10, locEndLine = 10, locEndCol = 11}", "name": "a", "requiredness": "default", "type": { @@ -1669,7 +1669,7 @@ }, { "id": 2, - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 5, locStartCol = 10, locEndLine = 5, locEndCol = 11}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 11, locStartCol = 10, locEndLine = 11, locEndCol = 11}", "name": "b", "requiredness": "default", "type": { @@ -1679,7 +1679,7 @@ }, { "id": 3, - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 6, locStartCol = 10, locEndLine = 6, locEndCol = 11}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 12, locStartCol = 10, locEndLine = 12, locEndCol = 11}", "name": "c", "requiredness": "default", "type": { @@ -1688,8 +1688,8 @@ "xref": [] } ], - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 1, locEndLine = 3, locEndCol = 7}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 1, locEndLine = 9, locEndCol = 7}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}", "name": "B", "struct_type": "STRUCT" }, @@ -1697,12 +1697,12 @@ "fields": [ { "id": 1, - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 10, locStartCol = 19, locEndLine = 10, locEndCol = 20}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 16, locStartCol = 19, locEndLine = 16, locEndCol = 20}", "name": "x", "requiredness": "default", "type": { "inner_type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}", "name": { "name": "Number" }, @@ -1712,19 +1712,19 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 10, locStartCol = 11, locEndLine = 10, locEndCol = 17}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 6, locEndLine = 15, locEndCol = 12}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 16, locStartCol = 11, locEndLine = 16, locEndCol = 17}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 21, locStartCol = 6, locEndLine = 21, locEndCol = 12}" } ] }, { "id": 2, - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 11, locStartCol = 26, locEndLine = 11, locEndCol = 27}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 17, locStartCol = 26, locEndLine = 17, locEndCol = 27}", "name": "y", "requiredness": "default", "type": { "inner_type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 22, locStartCol = 6, locEndLine = 22, locEndCol = 19}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 28, locStartCol = 6, locEndLine = 28, locEndCol = 19}", "name": { "name": "Number_Strict" }, @@ -1734,18 +1734,18 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 11, locStartCol = 11, locEndLine = 11, locEndCol = 24}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 22, locStartCol = 6, locEndLine = 22, locEndCol = 19}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 17, locStartCol = 11, locEndLine = 17, locEndCol = 24}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 28, locStartCol = 6, locEndLine = 28, locEndCol = 19}" } ] }, { "id": 3, - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 12, locStartCol = 8, locEndLine = 12, locEndCol = 9}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 18, locStartCol = 8, locEndLine = 18, locEndCol = 9}", "name": "z", "requiredness": "default", "type": { - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}", "name": { "name": "B" }, @@ -1753,14 +1753,14 @@ }, "xref": [ { - "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 12, locStartCol = 6, locEndLine = 12, locEndCol = 7}", - "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 3, locStartCol = 8, locEndLine = 3, locEndCol = 9}" + "aLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 18, locStartCol = 6, locEndLine = 18, locEndCol = 7}", + "rLoc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}" } ] } ], - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 1, locEndLine = 9, locEndCol = 7}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 9, locStartCol = 8, locEndLine = 9, locEndCol = 9}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 1, locEndLine = 15, locEndCol = 7}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 15, locStartCol = 8, locEndLine = 15, locEndCol = 9}", "name": "C", "struct_type": "STRUCT" } @@ -1770,7 +1770,7 @@ "ann_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 39, locStartCol = 9, locEndLine = 39, locEndCol = 12}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 9, locEndLine = 45, locEndCol = 12}" ], "type": { "type": "i64" @@ -1781,17 +1781,17 @@ { "ann_tag": "hs.newtype", "ann_type": "SimpleAnn", - "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 39, locStartCol = 18, locEndLine = 39, locEndCol = 28}", + "loc": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 18, locEndLine = 45, locEndCol = 28}", "sep": { "sep_type": "NoSep" } } ], - "loc_close": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 39, locStartCol = 28, locEndLine = 39, locEndCol = 29}", - "loc_open": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 39, locStartCol = 17, locEndLine = 39, locEndCol = 18}" + "loc_close": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 28, locEndLine = 45, locEndCol = 29}", + "loc_open": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 17, locEndLine = 45, locEndCol = 18}" }, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 39, locStartCol = 1, locEndLine = 39, locEndCol = 8}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 39, locStartCol = 13, locEndLine = 39, locEndCol = 16}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 1, locEndLine = 45, locEndCol = 8}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 45, locStartCol = 13, locEndLine = 45, locEndCol = 16}", "name": "Int", "newtype": true, "type": { @@ -1805,9 +1805,9 @@ "loc_ann_list": [ { "ann_type": "ValueAnn", - "loc_equal": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 38, locEndLine = 74, locEndCol = 39}", - "loc_tag": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 30, locEndLine = 74, locEndCol = 37}", - "loc_val": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 40, locEndLine = 74, locEndCol = 49}", + "loc_equal": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 38, locEndLine = 80, locEndCol = 39}", + "loc_tag": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 30, locEndLine = 80, locEndCol = 37}", + "loc_val": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 40, locEndLine = 80, locEndCol = 49}", "sep": { "sep_type": "NoSep" }, @@ -1819,20 +1819,20 @@ } } ], - "loc_close": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 49, locEndLine = 74, locEndCol = 50}", - "loc_open": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 29, locEndLine = 74, locEndCol = 30}" + "loc_close": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 49, locEndLine = 80, locEndCol = 50}", + "loc_open": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 29, locEndLine = 80, locEndCol = 30}" }, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 9, locEndLine = 74, locEndCol = 12}", - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 12, locEndLine = 74, locEndCol = 13}", - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 19, locEndLine = 74, locEndCol = 20}", - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 27, locEndLine = 74, locEndCol = 28}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 9, locEndLine = 80, locEndCol = 12}", + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 12, locEndLine = 80, locEndCol = 13}", + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 19, locEndLine = 80, locEndCol = 20}", + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 27, locEndLine = 80, locEndCol = 28}" ], "type": { "key_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 13, locEndLine = 74, locEndCol = 19}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 13, locEndLine = 80, locEndCol = 19}" ], "type": { "type": "string" @@ -1842,7 +1842,7 @@ "val_type": { "anns": null, "loc": [ - "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 21, locEndLine = 74, locEndCol = 27}" + "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 21, locEndLine = 80, locEndCol = 27}" ], "type": { "type": "string" @@ -1851,8 +1851,8 @@ } }, "anns": null, - "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 1, locEndLine = 74, locEndCol = 8}", - "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 74, locStartCol = 51, locEndLine = 74, locEndCol = 73}", + "loc_keyword": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 1, locEndLine = 80, locEndCol = 8}", + "loc_name": "Loc {locFile = \"test/if/b.thrift\", locStartLine = 80, locStartCol = 51, locEndLine = 80, locEndCol = 73}", "name": "map_string_string_6258", "newtype": false, "type": { diff --git a/compiler/test/genjsonloc-contains.sh b/compiler/test/genjsonloc-contains.sh index 535035b2..b7c0a580 100755 --- a/compiler/test/genjsonloc-contains.sh +++ b/compiler/test/genjsonloc-contains.sh @@ -1,6 +1,9 @@ #! /bin/bash -e - -# Copyright (c) Facebook, Inc. and its affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. +# +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. # Compare EmitJSON WithoutLoc to EmitJSON WithLoc # diff --git a/compiler/test/github/Util.hs b/compiler/test/github/Util.hs index 93b3aa5b..22573eb5 100644 --- a/compiler/test/github/Util.hs +++ b/compiler/test/github/Util.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Util (withFixtureOptions) where diff --git a/compiler/test/if/b.thrift b/compiler/test/if/b.thrift index 60a01148..ac5d5797 100644 --- a/compiler/test/if/b.thrift +++ b/compiler/test/if/b.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ struct B { 1: i16 a = 1; diff --git a/compiler/test/if/c.thrift b/compiler/test/if/c.thrift index 93358f3d..f0ec80a9 100644 --- a/compiler/test/if/c.thrift +++ b/compiler/test/if/c.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ struct FirstAnnotation { 1: string name; diff --git a/compiler/test/if/d.thrift b/compiler/test/if/d.thrift index 7313ff2b..649e8b74 100644 --- a/compiler/test/if/d.thrift +++ b/compiler/test/if/d.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ typedef map hstypedef typedef map hsnewtypeann (hs.newtype) diff --git a/compiler/test/if/f.thrift b/compiler/test/if/f.thrift index c5cf7e0e..3011f768 100644 --- a/compiler/test/if/f.thrift +++ b/compiler/test/if/f.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ enum HugeEnum { VALUE_0001 = 1, diff --git a/cpp-channel/Thrift/Channel/HeaderChannel.hs b/cpp-channel/Thrift/Channel/HeaderChannel.hs index 2f56a079..d9a08160 100644 --- a/cpp-channel/Thrift/Channel/HeaderChannel.hs +++ b/cpp-channel/Thrift/Channel/HeaderChannel.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.Channel.HeaderChannel ( HeaderWrappedChannel diff --git a/cpp-channel/Thrift/Channel/Lib/CppChannel.hsc b/cpp-channel/Thrift/Channel/Lib/CppChannel.hsc index a44ae10f..6de0fad1 100644 --- a/cpp-channel/Thrift/Channel/Lib/CppChannel.hsc +++ b/cpp-channel/Thrift/Channel/Lib/CppChannel.hsc @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE CPP #-} {-# OPTIONS_GHC -fno-warn-unused-do-bind #-} diff --git a/cpp-channel/Thrift/Channel/Lib/HeaderChannel.hs b/cpp-channel/Thrift/Channel/Lib/HeaderChannel.hs index 8fe5f080..26571aef 100644 --- a/cpp-channel/Thrift/Channel/Lib/HeaderChannel.hs +++ b/cpp-channel/Thrift/Channel/Lib/HeaderChannel.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE StandaloneDeriving #-} module Thrift.Channel.Lib.HeaderChannel diff --git a/cpp-channel/cpp/HeaderChannel.cpp b/cpp-channel/cpp/HeaderChannel.cpp index 3eb0751f..d137af7e 100644 --- a/cpp-channel/cpp/HeaderChannel.cpp +++ b/cpp-channel/cpp/HeaderChannel.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include #include diff --git a/cpp-channel/cpp/HsChannel.cpp b/cpp-channel/cpp/HsChannel.cpp index 0df55a04..de873c4d 100644 --- a/cpp-channel/cpp/HsChannel.cpp +++ b/cpp-channel/cpp/HsChannel.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include #include diff --git a/cpp-channel/cpp/HsChannel.h b/cpp-channel/cpp/HsChannel.h index 0e0aeba1..d82ddc69 100644 --- a/cpp-channel/cpp/HsChannel.h +++ b/cpp-channel/cpp/HsChannel.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #pragma once diff --git a/cpp-channel/test/CompactBench.cpp b/cpp-channel/test/CompactBench.cpp index 4f8ef57a..37a7042e 100644 --- a/cpp-channel/test/CompactBench.cpp +++ b/cpp-channel/test/CompactBench.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include diff --git a/cpp-channel/test/CompactBench.hs b/cpp-channel/test/CompactBench.hs index d12018cc..896f1bce 100644 --- a/cpp-channel/test/CompactBench.hs +++ b/cpp-channel/test/CompactBench.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module CompactBench where diff --git a/cpp-channel/test/HeaderChannelTest.hs b/cpp-channel/test/HeaderChannelTest.hs index 053e869d..f4f198c8 100644 --- a/cpp-channel/test/HeaderChannelTest.hs +++ b/cpp-channel/test/HeaderChannelTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module HeaderChannelTest where diff --git a/cpp-channel/test/LifetimeTest.hs b/cpp-channel/test/LifetimeTest.hs index afae9b24..7139c47e 100644 --- a/cpp-channel/test/LifetimeTest.hs +++ b/cpp-channel/test/LifetimeTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module LifetimeTest (main) where diff --git a/cpp-channel/test/MathServer.cpp b/cpp-channel/test/MathServer.cpp index e77d542f..8ddd881d 100644 --- a/cpp-channel/test/MathServer.cpp +++ b/cpp-channel/test/MathServer.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include #include "test/if/gen-cpp2/Calculator.h" diff --git a/exactprint/Thrift/ExactPrint/Codemod.hs b/exactprint/Thrift/ExactPrint/Codemod.hs index cb73a1c8..05697f51 100644 --- a/exactprint/Thrift/ExactPrint/Codemod.hs +++ b/exactprint/Thrift/ExactPrint/Codemod.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.ExactPrint.Codemod ( roundTripWith diff --git a/exactprint/Thrift/ExactPrint/Convert.hs b/exactprint/Thrift/ExactPrint/Convert.hs index e6069a27..5b56dcd4 100644 --- a/exactprint/Thrift/ExactPrint/Convert.hs +++ b/exactprint/Thrift/ExactPrint/Convert.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.ExactPrint.Convert ( computeOffsets diff --git a/exactprint/Thrift/ExactPrint/PrettyPrint.hs b/exactprint/Thrift/ExactPrint/PrettyPrint.hs index 7ec5c1cc..60d5cf44 100644 --- a/exactprint/Thrift/ExactPrint/PrettyPrint.hs +++ b/exactprint/Thrift/ExactPrint/PrettyPrint.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.ExactPrint.PrettyPrint ( exactPrint diff --git a/exactprint/Thrift/ExactPrint/Types.hs b/exactprint/Thrift/ExactPrint/Types.hs index b273c17b..ae4d6e87 100644 --- a/exactprint/Thrift/ExactPrint/Types.hs +++ b/exactprint/Thrift/ExactPrint/Types.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.ExactPrint.Types ( Offset(..) diff --git a/exactprint/tests/CodemodTest.hs b/exactprint/tests/CodemodTest.hs index 9c4b2be1..edcf1bde 100644 --- a/exactprint/tests/CodemodTest.hs +++ b/exactprint/tests/CodemodTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module CodemodTest (main) where diff --git a/exactprint/tests/RoundTripTest.hs b/exactprint/tests/RoundTripTest.hs index f8660dbd..9ea5f36b 100644 --- a/exactprint/tests/RoundTripTest.hs +++ b/exactprint/tests/RoundTripTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module RoundTripTest (main) where diff --git a/exactprint/tests/sync-fbthrift-tests.sh b/exactprint/tests/sync-fbthrift-tests.sh index b31128aa..b55c4464 100644 --- a/exactprint/tests/sync-fbthrift-tests.sh +++ b/exactprint/tests/sync-fbthrift-tests.sh @@ -1,6 +1,9 @@ #! /bin/bash - -# Copyright (c) Facebook, Inc. and its affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. +# +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. HEADER="// THIS FILE IS COPIED FROM FBTHRIFT, DO NOT MODIFY ITS CONTENTS DIRECTLY\n\ // generated-by : fbcode/common/hs/thrift/exactprint/tests/sync-fbthrift-tests.sh\n\ diff --git a/haxl/Haxl/DataSource/Thrift.hs b/haxl/Haxl/DataSource/Thrift.hs index d6a3926e..143c0107 100644 --- a/haxl/Haxl/DataSource/Thrift.hs +++ b/haxl/Haxl/DataSource/Thrift.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} -- -- | Support for building a Haxl datasource to connect to a Thrift diff --git a/http/Thrift/Channel/HTTP.hs b/http/Thrift/Channel/HTTP.hs index a9da0875..73a9d42d 100644 --- a/http/Thrift/Channel/HTTP.hs +++ b/http/Thrift/Channel/HTTP.hs @@ -1,3 +1,11 @@ +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} + module Thrift.Channel.HTTP ( HTTPConfig(..), withHTTPChannel, diff --git a/http/Thrift/Server/HTTP.hs b/http/Thrift/Server/HTTP.hs index 7b52b608..a5acd66b 100644 --- a/http/Thrift/Server/HTTP.hs +++ b/http/Thrift/Server/HTTP.hs @@ -1,3 +1,11 @@ +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} + -- | Support for creating a Thrift-over-HTTP server {-# LANGUAGE TypeApplications #-} diff --git a/http/test/ServerTest.hs b/http/test/ServerTest.hs index 7bba05fc..f4bb8457 100644 --- a/http/test/ServerTest.hs +++ b/http/test/ServerTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module ServerTest (main) where diff --git a/http/test/common/CalculatorHandler.hs b/http/test/common/CalculatorHandler.hs index 241374ea..cbc097ef 100644 --- a/http/test/common/CalculatorHandler.hs +++ b/http/test/common/CalculatorHandler.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module CalculatorHandler ( calculatorHandler diff --git a/http/test/common/EchoHandler.hs b/http/test/common/EchoHandler.hs index ed13379d..27a9e358 100644 --- a/http/test/common/EchoHandler.hs +++ b/http/test/common/EchoHandler.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module EchoHandler ( echoHandler diff --git a/lib/Thrift/Api.hs b/lib/Thrift/Api.hs index 7865652c..1971e507 100644 --- a/lib/Thrift/Api.hs +++ b/lib/Thrift/Api.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.Api ( Thrift diff --git a/lib/Thrift/Binary/Parser.hs b/lib/Thrift/Binary/Parser.hs index 227548b8..b8573638 100644 --- a/lib/Thrift/Binary/Parser.hs +++ b/lib/Thrift/Binary/Parser.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.Binary.Parser ( module Util.Binary.Parser diff --git a/lib/Thrift/Channel.hs b/lib/Thrift/Channel.hs index 07c706cc..ecafcadc 100644 --- a/lib/Thrift/Channel.hs +++ b/lib/Thrift/Channel.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.Channel ( ClientChannel(..) diff --git a/lib/Thrift/Channel/SocketChannel.hs b/lib/Thrift/Channel/SocketChannel.hs index e253d3b7..f305146b 100644 --- a/lib/Thrift/Channel/SocketChannel.hs +++ b/lib/Thrift/Channel/SocketChannel.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} -- | -- An implementation of a Thrift channel in Haskell using diff --git a/lib/Thrift/Channel/SocketChannel/Server.hs b/lib/Thrift/Channel/SocketChannel/Server.hs index 359e9cce..32745848 100644 --- a/lib/Thrift/Channel/SocketChannel/Server.hs +++ b/lib/Thrift/Channel/SocketChannel/Server.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE CPP #-} module Thrift.Channel.SocketChannel.Server diff --git a/lib/Thrift/Codegen.hs b/lib/Thrift/Codegen.hs index 1c058753..58442119 100644 --- a/lib/Thrift/Codegen.hs +++ b/lib/Thrift/Codegen.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.Codegen ( module Thrift diff --git a/lib/Thrift/CodegenTypesOnly.hs b/lib/Thrift/CodegenTypesOnly.hs index 34551f7f..a5aa7a02 100644 --- a/lib/Thrift/CodegenTypesOnly.hs +++ b/lib/Thrift/CodegenTypesOnly.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# OPTIONS_GHC -Wno-orphans #-} module Thrift.CodegenTypesOnly diff --git a/lib/Thrift/HasFields.hs b/lib/Thrift/HasFields.hs index e0c3e3da..e3d21183 100644 --- a/lib/Thrift/HasFields.hs +++ b/lib/Thrift/HasFields.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE AllowAmbiguousTypes #-} {-# LANGUAGE FunctionalDependencies #-} diff --git a/lib/Thrift/Monad.hsc b/lib/Thrift/Monad.hsc index 5a1a1df1..b9c9ecce 100644 --- a/lib/Thrift/Monad.hsc +++ b/lib/Thrift/Monad.hsc @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE UndecidableInstances #-} diff --git a/lib/Thrift/Processor.hs b/lib/Thrift/Processor.hs index 8ada64c1..185e68cf 100644 --- a/lib/Thrift/Processor.hs +++ b/lib/Thrift/Processor.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE CPP #-} module Thrift.Processor diff --git a/lib/Thrift/Protocol.hs b/lib/Thrift/Protocol.hs index dec172d1..c81c4ac5 100644 --- a/lib/Thrift/Protocol.hs +++ b/lib/Thrift/Protocol.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE ConstraintKinds, CPP #-} module Thrift.Protocol diff --git a/lib/Thrift/Protocol/Binary.hs b/lib/Thrift/Protocol/Binary.hs index 924cdda6..de072152 100644 --- a/lib/Thrift/Protocol/Binary.hs +++ b/lib/Thrift/Protocol/Binary.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE CPP #-} module Thrift.Protocol.Binary diff --git a/lib/Thrift/Protocol/Binary/Internal.hs b/lib/Thrift/Protocol/Binary/Internal.hs index bf717ede..304d1fb9 100644 --- a/lib/Thrift/Protocol/Binary/Internal.hs +++ b/lib/Thrift/Protocol/Binary/Internal.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE CPP #-} module Thrift.Protocol.Binary.Internal diff --git a/lib/Thrift/Protocol/Compact.hs b/lib/Thrift/Protocol/Compact.hs index d97f771a..c3f018b5 100644 --- a/lib/Thrift/Protocol/Compact.hs +++ b/lib/Thrift/Protocol/Compact.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE CPP #-} {-# LANGUAGE MagicHash #-} diff --git a/lib/Thrift/Protocol/Id.hs b/lib/Thrift/Protocol/Id.hs index c1e627ad..ad08d552 100644 --- a/lib/Thrift/Protocol/Id.hs +++ b/lib/Thrift/Protocol/Id.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.Protocol.Id ( withProxy diff --git a/lib/Thrift/Protocol/JSON.hs b/lib/Thrift/Protocol/JSON.hs index 9a8cf8b5..9fc473ba 100644 --- a/lib/Thrift/Protocol/JSON.hs +++ b/lib/Thrift/Protocol/JSON.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE CPP #-} {-# LANGUAGE TypeApplications #-} diff --git a/lib/Thrift/Protocol/JSON/Base64.hs b/lib/Thrift/Protocol/JSON/Base64.hs index b79505d1..7b50b284 100644 --- a/lib/Thrift/Protocol/JSON/Base64.hs +++ b/lib/Thrift/Protocol/JSON/Base64.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.Protocol.JSON.Base64 ( encodeBase64 diff --git a/lib/Thrift/Protocol/JSON/String.hs b/lib/Thrift/Protocol/JSON/String.hs index f0523971..ab5aa370 100644 --- a/lib/Thrift/Protocol/JSON/String.hs +++ b/lib/Thrift/Protocol/JSON/String.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# OPTIONS_GHC -fprof-auto #-} {-# LANGUAGE ApplicativeDo #-} diff --git a/lib/Thrift/Util.hs b/lib/Thrift/Util.hs index 888ad057..9c7fa21e 100644 --- a/lib/Thrift/Util.hs +++ b/lib/Thrift/Util.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.Util ( loadJSON diff --git a/lib/if/ApplicationException.thrift b/lib/if/ApplicationException.thrift index 082c0ed6..1d653f27 100644 --- a/lib/if/ApplicationException.thrift +++ b/lib/if/ApplicationException.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ namespace hs "Thrift.Protocol" diff --git a/lib/if/RpcOptions.thrift b/lib/if/RpcOptions.thrift index ffcc4236..363727ce 100644 --- a/lib/if/RpcOptions.thrift +++ b/lib/if/RpcOptions.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ namespace cpp2 "thrift.protocol" namespace hs "Thrift.Protocol" diff --git a/lib/test/BinaryParserTest.hs b/lib/test/BinaryParserTest.hs index 01c41669..b4e71023 100644 --- a/lib/test/BinaryParserTest.hs +++ b/lib/test/BinaryParserTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module BinaryParserTest where diff --git a/lib/test/ChannelTest.hs b/lib/test/ChannelTest.hs index 732abbc1..3993113c 100644 --- a/lib/test/ChannelTest.hs +++ b/lib/test/ChannelTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module ChannelTest where diff --git a/lib/test/ClientTest.hs b/lib/test/ClientTest.hs index cd9307ae..1bfdd581 100644 --- a/lib/test/ClientTest.hs +++ b/lib/test/ClientTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module ClientTest where diff --git a/lib/test/IOBufBench.cpp b/lib/test/IOBufBench.cpp index 45e3ad46..b7af6e9a 100644 --- a/lib/test/IOBufBench.cpp +++ b/lib/test/IOBufBench.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include diff --git a/lib/test/IOBufBench.hs b/lib/test/IOBufBench.hs index 52a56e1f..0eb32cb0 100644 --- a/lib/test/IOBufBench.hs +++ b/lib/test/IOBufBench.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module IOBufBench where diff --git a/lib/test/JSONNullTest.hs b/lib/test/JSONNullTest.hs index 8ff638e2..5940654d 100644 --- a/lib/test/JSONNullTest.hs +++ b/lib/test/JSONNullTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module JSONNullTest (main) where diff --git a/lib/test/JSONNumTest.hs b/lib/test/JSONNumTest.hs index 313dbfd3..50bce11b 100644 --- a/lib/test/JSONNumTest.hs +++ b/lib/test/JSONNumTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE TypeApplications #-} module JSONNumTest where diff --git a/lib/test/JSONStringTest.hs b/lib/test/JSONStringTest.hs index 3ba46c11..9906cfd9 100644 --- a/lib/test/JSONStringTest.hs +++ b/lib/test/JSONStringTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE TypeApplications #-} module JSONStringTest where diff --git a/lib/test/SocketChannelTest.hs b/lib/test/SocketChannelTest.hs index 62ef9a82..456a9aa1 100644 --- a/lib/test/SocketChannelTest.hs +++ b/lib/test/SocketChannelTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module SocketChannelTest where diff --git a/lib/test/helpers/Network.hs b/lib/test/helpers/Network.hs index cfec83e4..5b90fb9c 100644 --- a/lib/test/helpers/Network.hs +++ b/lib/test/helpers/Network.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE CPP #-} module Network where diff --git a/lib/test/helpers/TestChannel.hs b/lib/test/helpers/TestChannel.hs index e8cdbf6c..66cea55a 100644 --- a/lib/test/helpers/TestChannel.hs +++ b/lib/test/helpers/TestChannel.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module TestChannel ( TestChannel(..), Req(..) diff --git a/lib/test/if/echoer.thrift b/lib/test/if/echoer.thrift index f226ea1f..59b66e9c 100644 --- a/lib/test/if/echoer.thrift +++ b/lib/test/if/echoer.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ include "test/if/math.thrift" diff --git a/lib/test/if/math.thrift b/lib/test/if/math.thrift index c3f16f8e..246b8717 100644 --- a/lib/test/if/math.thrift +++ b/lib/test/if/math.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ exception DivideByZero {} diff --git a/lib/test/lib/TestCommon.hs b/lib/test/lib/TestCommon.hs index db037ddd..4ebca189 100644 --- a/lib/test/lib/TestCommon.hs +++ b/lib/test/lib/TestCommon.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module TestCommon where diff --git a/new_install_deps.sh b/new_install_deps.sh index 661326f6..b617033e 100755 --- a/new_install_deps.sh +++ b/new_install_deps.sh @@ -1,6 +1,9 @@ #!/usr/bin/env bash - -# Copyright (c) Facebook, Inc. and its affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. +# +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. set -e diff --git a/serialization/ThriftSerializers.h b/serialization/ThriftSerializers.h index 6a0ab762..e46739a0 100644 --- a/serialization/ThriftSerializers.h +++ b/serialization/ThriftSerializers.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #pragma once diff --git a/server/Thrift/Server/CppServer.hs b/server/Thrift/Server/CppServer.hs index d54ce473..2aa2a09c 100644 --- a/server/Thrift/Server/CppServer.hs +++ b/server/Thrift/Server/CppServer.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE CPP #-} {-# LANGUAGE TemplateHaskell #-} diff --git a/server/Thrift/Server/ProcessorCallback.hsc b/server/Thrift/Server/ProcessorCallback.hsc index 13d73498..cb98bb9c 100644 --- a/server/Thrift/Server/ProcessorCallback.hsc +++ b/server/Thrift/Server/ProcessorCallback.hsc @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.Server.ProcessorCallback ( withProcessorCallback diff --git a/server/Thrift/Server/Types.hs b/server/Thrift/Server/Types.hs index 64d59ba2..cb9b6953 100644 --- a/server/Thrift/Server/Types.hs +++ b/server/Thrift/Server/Types.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module Thrift.Server.Types ( ServerOptions(..) diff --git a/server/cpp/CppServer.cpp b/server/cpp/CppServer.cpp index 2f8f7d1b..86166e13 100644 --- a/server/cpp/CppServer.cpp +++ b/server/cpp/CppServer.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include "cpp/CppServer.h" diff --git a/server/cpp/CppServer.h b/server/cpp/CppServer.h index 9a252eef..1ddb0870 100644 --- a/server/cpp/CppServer.h +++ b/server/cpp/CppServer.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #pragma once diff --git a/server/cpp/HaskellProcessor.cpp b/server/cpp/HaskellProcessor.cpp index cc2c297d..4ec41295 100644 --- a/server/cpp/HaskellProcessor.cpp +++ b/server/cpp/HaskellProcessor.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include "cpp/HaskellProcessor.h" #include diff --git a/server/cpp/HaskellProcessor.h b/server/cpp/HaskellProcessor.h index caa62383..5577f8b2 100644 --- a/server/cpp/HaskellProcessor.h +++ b/server/cpp/HaskellProcessor.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #pragma once diff --git a/server/test/DanglingPointerTest.hs b/server/test/DanglingPointerTest.hs index f1103720..a4c42fb5 100644 --- a/server/test/DanglingPointerTest.hs +++ b/server/test/DanglingPointerTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module DanglingPointerTest (main) where diff --git a/server/test/HandlerTest.hs b/server/test/HandlerTest.hs index 495013fe..609d283a 100644 --- a/server/test/HandlerTest.hs +++ b/server/test/HandlerTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module HandlerTest where diff --git a/server/test/HaskellProcessorTest.cpp b/server/test/HaskellProcessorTest.cpp index ede8158f..50314d7c 100644 --- a/server/test/HaskellProcessorTest.cpp +++ b/server/test/HaskellProcessorTest.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include "cpp/HaskellProcessor.h" diff --git a/server/test/ServerTest.hs b/server/test/ServerTest.hs index b8886e6a..54ceb0f1 100644 --- a/server/test/ServerTest.hs +++ b/server/test/ServerTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module ServerTest (main) where diff --git a/server/test/common/CalculatorHandler.hs b/server/test/common/CalculatorHandler.hs index 241374ea..cbc097ef 100644 --- a/server/test/common/CalculatorHandler.hs +++ b/server/test/common/CalculatorHandler.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module CalculatorHandler ( calculatorHandler diff --git a/server/test/common/EchoHandler.hs b/server/test/common/EchoHandler.hs index ed13379d..27a9e358 100644 --- a/server/test/common/EchoHandler.hs +++ b/server/test/common/EchoHandler.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module EchoHandler ( echoHandler diff --git a/server/test/if/hash_map.thrift b/server/test/if/hash_map.thrift index 0c33719b..42794011 100644 --- a/server/test/if/hash_map.thrift +++ b/server/test/if/hash_map.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ exception NotFound { 1: string key; diff --git a/tests/AddPrefixTest.hs b/tests/AddPrefixTest.hs index 2f8d998f..56feebe9 100644 --- a/tests/AddPrefixTest.hs +++ b/tests/AddPrefixTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module AddPrefixTest where diff --git a/tests/BinaryProtocolTest.hs b/tests/BinaryProtocolTest.hs index 62470a36..5cbb33d3 100644 --- a/tests/BinaryProtocolTest.hs +++ b/tests/BinaryProtocolTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module BinaryProtocolTest where diff --git a/tests/ConstGenTest.hs b/tests/ConstGenTest.hs index 449ce9c4..6f146eb0 100644 --- a/tests/ConstGenTest.hs +++ b/tests/ConstGenTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module ConstGenTest where diff --git a/tests/ConstParserTest.hs b/tests/ConstParserTest.hs index 63c14929..03c4798d 100644 --- a/tests/ConstParserTest.hs +++ b/tests/ConstParserTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module ConstParserTest where diff --git a/tests/ConstTest.hs b/tests/ConstTest.hs index 7ab8ee8e..f8240b23 100644 --- a/tests/ConstTest.hs +++ b/tests/ConstTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module ConstTest where diff --git a/tests/DuplicateNamesTest.hs b/tests/DuplicateNamesTest.hs index 43453fbd..c90a0857 100644 --- a/tests/DuplicateNamesTest.hs +++ b/tests/DuplicateNamesTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module DuplicateNamesTest where diff --git a/tests/EnumConstTest.hs b/tests/EnumConstTest.hs index 19e23044..3b919885 100644 --- a/tests/EnumConstTest.hs +++ b/tests/EnumConstTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module EnumConstTest where diff --git a/tests/EnumTest.hs b/tests/EnumTest.hs index 516364dc..fcedd28a 100644 --- a/tests/EnumTest.hs +++ b/tests/EnumTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE TypeApplications #-} module EnumTest where diff --git a/tests/ExceptionTest.hs b/tests/ExceptionTest.hs index 2da52d62..2c5da105 100644 --- a/tests/ExceptionTest.hs +++ b/tests/ExceptionTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module ExceptionTest where diff --git a/tests/FlagsTest.hs b/tests/FlagsTest.hs index 74a35bba..a639b9b9 100644 --- a/tests/FlagsTest.hs +++ b/tests/FlagsTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module FlagsTest where diff --git a/tests/HasFieldTest.hs b/tests/HasFieldTest.hs index 4a4926ab..f9f98a2f 100644 --- a/tests/HasFieldTest.hs +++ b/tests/HasFieldTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE TypeApplications #-} diff --git a/tests/IncludesTest.hs b/tests/IncludesTest.hs index 72c07249..199e61d7 100644 --- a/tests/IncludesTest.hs +++ b/tests/IncludesTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module IncludesTest where diff --git a/tests/InputCheckingTest.hs b/tests/InputCheckingTest.hs index c68c9e4e..9a775217 100644 --- a/tests/InputCheckingTest.hs +++ b/tests/InputCheckingTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module InputCheckingTest where diff --git a/tests/InstancesTest.hs b/tests/InstancesTest.hs index 762d2cbc..be710a43 100644 --- a/tests/InstancesTest.hs +++ b/tests/InstancesTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module InstancesTest where diff --git a/tests/IntegrationTest.hs b/tests/IntegrationTest.hs index 0d37d03b..cf747abf 100644 --- a/tests/IntegrationTest.hs +++ b/tests/IntegrationTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module IntegrationTest where diff --git a/tests/InteractionsTest.hs b/tests/InteractionsTest.hs index 30fbb671..4861bf38 100644 --- a/tests/InteractionsTest.hs +++ b/tests/InteractionsTest.hs @@ -1,3 +1,11 @@ +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} + module InteractionsTest where import Test.HUnit diff --git a/tests/InterfaceTest.hs b/tests/InterfaceTest.hs index 756686b2..4b772008 100644 --- a/tests/InterfaceTest.hs +++ b/tests/InterfaceTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module InterfaceTest where diff --git a/tests/JSONTest.hs b/tests/JSONTest.hs index c279da37..2df99a89 100644 --- a/tests/JSONTest.hs +++ b/tests/JSONTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# OPTIONS_GHC -fno-warn-orphans #-} module JSONTest where diff --git a/tests/LexerTest.hs b/tests/LexerTest.hs index b4414701..0d020e05 100644 --- a/tests/LexerTest.hs +++ b/tests/LexerTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# OPTIONS_GHC -fno-warn-orphans #-} module LexerTest where diff --git a/tests/MapTest.hs b/tests/MapTest.hs index 31b767c6..733831d6 100644 --- a/tests/MapTest.hs +++ b/tests/MapTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module MapTest where diff --git a/tests/MessageTest.hs b/tests/MessageTest.hs index 949b396a..d707ee50 100644 --- a/tests/MessageTest.hs +++ b/tests/MessageTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module MessageTest where diff --git a/tests/MessedUpCaseTest.hs b/tests/MessedUpCaseTest.hs index 4301f09a..abde66ce 100644 --- a/tests/MessedUpCaseTest.hs +++ b/tests/MessedUpCaseTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module MessedUpCaseTest where diff --git a/tests/NamespaceTest.hs b/tests/NamespaceTest.hs index 8e44d522..59f6bf01 100644 --- a/tests/NamespaceTest.hs +++ b/tests/NamespaceTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module NamespaceTest where diff --git a/tests/ParensTest.hs b/tests/ParensTest.hs index 0e56e291..9224292a 100644 --- a/tests/ParensTest.hs +++ b/tests/ParensTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module ParensTest where diff --git a/tests/ParserTest.hs b/tests/ParserTest.hs index 1b224029..976500b2 100644 --- a/tests/ParserTest.hs +++ b/tests/ParserTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module ParserTest where diff --git a/tests/PseudoThriftEnumTest.hs b/tests/PseudoThriftEnumTest.hs index 1fa6749d..6a2ba70e 100644 --- a/tests/PseudoThriftEnumTest.hs +++ b/tests/PseudoThriftEnumTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module PseudoThriftEnumTest where diff --git a/tests/RecursiveTest.hs b/tests/RecursiveTest.hs index 8ff4a4dc..8809b5af 100644 --- a/tests/RecursiveTest.hs +++ b/tests/RecursiveTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module RecursiveTest where diff --git a/tests/RequiredSymbolsTest.hs b/tests/RequiredSymbolsTest.hs index 9dde6f42..b71a30e8 100644 --- a/tests/RequiredSymbolsTest.hs +++ b/tests/RequiredSymbolsTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module RequiredSymbolsTest where diff --git a/tests/ScopedEnumsTest.hs b/tests/ScopedEnumsTest.hs index b37b73ce..46f9877d 100644 --- a/tests/ScopedEnumsTest.hs +++ b/tests/ScopedEnumsTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module ScopedEnumsTest where diff --git a/tests/ServiceTest.hs b/tests/ServiceTest.hs index d7792cbc..d81460dd 100644 --- a/tests/ServiceTest.hs +++ b/tests/ServiceTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module ServiceTest where diff --git a/tests/TransitiveIncludeTest.hs b/tests/TransitiveIncludeTest.hs index e412e182..d81c9cc8 100644 --- a/tests/TransitiveIncludeTest.hs +++ b/tests/TransitiveIncludeTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module TransitiveIncludeTest where diff --git a/tests/TypecheckerTest.hs b/tests/TypecheckerTest.hs index 1b12da13..a21cece9 100644 --- a/tests/TypecheckerTest.hs +++ b/tests/TypecheckerTest.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} module TypecheckerTest where diff --git a/tests/TypecheckerTestLenient.hs b/tests/TypecheckerTestLenient.hs index 8b794c5d..842b0a7b 100644 --- a/tests/TypecheckerTestLenient.hs +++ b/tests/TypecheckerTestLenient.hs @@ -1,4 +1,10 @@ --- Copyright (c) Facebook, Inc. and its affiliates. +{- + Copyright (c) Meta Platforms, Inc. and affiliates. + All rights reserved. + + This source code is licensed under the BSD-style license found in the + LICENSE file in the root directory of this source tree. +-} {-# LANGUAGE NamedFieldPuns #-} module TypecheckerTestLenient where diff --git a/tests/cpp/hs_test.cpp b/tests/cpp/hs_test.cpp index c297e6b8..d21c1fa3 100644 --- a/tests/cpp/hs_test.cpp +++ b/tests/cpp/hs_test.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include #include diff --git a/tests/cpp/hs_test.h b/tests/cpp/hs_test.h index 8fc76871..fcf27a30 100644 --- a/tests/cpp/hs_test.h +++ b/tests/cpp/hs_test.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include diff --git a/tests/cpp/messages.cpp b/tests/cpp/messages.cpp index 899fa08d..e637ca27 100644 --- a/tests/cpp/messages.cpp +++ b/tests/cpp/messages.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include #include diff --git a/tests/cpp/messages.h b/tests/cpp/messages.h index 8fc76871..fcf27a30 100644 --- a/tests/cpp/messages.h +++ b/tests/cpp/messages.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ #include diff --git a/tests/if/A.thrift b/tests/if/A.thrift index d3f8b500..a302e1ab 100644 --- a/tests/if/A.thrift +++ b/tests/if/A.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ include "if/B.thrift" include "if/C.thrift" diff --git a/tests/if/B.thrift b/tests/if/B.thrift index 4f86cf22..50deab61 100644 --- a/tests/if/B.thrift +++ b/tests/if/B.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ include "if/D.thrift" include "if/E.thrift" diff --git a/tests/if/C.thrift b/tests/if/C.thrift index d77eb813..cfd5e164 100644 --- a/tests/if/C.thrift +++ b/tests/if/C.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ include "if/E.thrift" diff --git a/tests/if/D.thrift b/tests/if/D.thrift index 7965cff6..8f474b06 100644 --- a/tests/if/D.thrift +++ b/tests/if/D.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ typedef i64 (hs.type = "Int") Int diff --git a/tests/if/E.thrift b/tests/if/E.thrift index 6eb52b13..8ccd44d7 100644 --- a/tests/if/E.thrift +++ b/tests/if/E.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ struct E { 1: string eString; diff --git a/tests/if/EnumConst.thrift b/tests/if/EnumConst.thrift index 2f686b6e..879b700f 100644 --- a/tests/if/EnumConst.thrift +++ b/tests/if/EnumConst.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ enum X { A = 0, diff --git a/tests/if/bar.thrift b/tests/if/bar.thrift index 04b23005..fab2204e 100644 --- a/tests/if/bar.thrift +++ b/tests/if/bar.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ include "if/foo.thrift" diff --git a/tests/if/baz.thrift b/tests/if/baz.thrift index 766425b6..ebdab9cc 100644 --- a/tests/if/baz.thrift +++ b/tests/if/baz.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ include "if/bar.thrift" diff --git a/tests/if/constants.thrift b/tests/if/constants.thrift index a659002a..343112ca 100644 --- a/tests/if/constants.thrift +++ b/tests/if/constants.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ const i32 i32Const = 99; diff --git a/tests/if/duplicate.thrift b/tests/if/duplicate.thrift index 0f308797..42e3bdfd 100644 --- a/tests/if/duplicate.thrift +++ b/tests/if/duplicate.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ struct X { 1: string name; diff --git a/tests/if/enum.thrift b/tests/if/enum.thrift index bdb6ec87..cd818487 100644 --- a/tests/if/enum.thrift +++ b/tests/if/enum.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ enum UnsortedEnum { G = 7, diff --git a/tests/if/exception.thrift b/tests/if/exception.thrift index 89e095ef..ea323b6e 100644 --- a/tests/if/exception.thrift +++ b/tests/if/exception.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ exception X { 1: string reason; diff --git a/tests/if/flags.thrift b/tests/if/flags.thrift index 644bf5d8..79c5fcf8 100644 --- a/tests/if/flags.thrift +++ b/tests/if/flags.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ const i64 intConst = 100; const i64 int2 = intConst; diff --git a/tests/if/foo.thrift b/tests/if/foo.thrift index 6bbd22e2..b4e634a5 100644 --- a/tests/if/foo.thrift +++ b/tests/if/foo.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ typedef i64 X diff --git a/tests/if/hasfield.thrift b/tests/if/hasfield.thrift index 871672be..2af4f7dc 100644 --- a/tests/if/hasfield.thrift +++ b/tests/if/hasfield.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ typedef i64 X diff --git a/tests/if/hs_prefix.thrift b/tests/if/hs_prefix.thrift index f774e0be..a7cae283 100644 --- a/tests/if/hs_prefix.thrift +++ b/tests/if/hs_prefix.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ enum E { A = 0, diff --git a/tests/if/hs_test.thrift b/tests/if/hs_test.thrift index dc452440..b1db3615 100644 --- a/tests/if/hs_test.thrift +++ b/tests/if/hs_test.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ hs_include "if/hs_test_instances.hs" diff --git a/tests/if/map.thrift b/tests/if/map.thrift index 79da05d5..492b2bfd 100644 --- a/tests/if/map.thrift +++ b/tests/if/map.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ typedef map Map diff --git a/tests/if/messed_up_case.thrift b/tests/if/messed_up_case.thrift index c7cae51f..3e004831 100644 --- a/tests/if/messed_up_case.thrift +++ b/tests/if/messed_up_case.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ typedef i64 (hs.type = "Int") intType diff --git a/tests/if/monoid.thrift b/tests/if/monoid.thrift index 7d6c0b2f..572d5f30 100644 --- a/tests/if/monoid.thrift +++ b/tests/if/monoid.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ hs_include "if/instances.hs" diff --git a/tests/if/namespace.thrift b/tests/if/namespace.thrift index b28d847d..060b8acf 100644 --- a/tests/if/namespace.thrift +++ b/tests/if/namespace.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ include "if/namespace_included.thrift" diff --git a/tests/if/namespace_included.thrift b/tests/if/namespace_included.thrift index 6535be67..143ff036 100644 --- a/tests/if/namespace_included.thrift +++ b/tests/if/namespace_included.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ namespace hs Thrift.Test.Internal diff --git a/tests/if/package.thrift b/tests/if/package.thrift index 47e09438..9db0a114 100644 --- a/tests/if/package.thrift +++ b/tests/if/package.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ package "meta.com/thrift/test" diff --git a/tests/if/parens.thrift b/tests/if/parens.thrift index 22461fc9..273a38af 100644 --- a/tests/if/parens.thrift +++ b/tests/if/parens.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ struct X { # both Y and Int include <$> in their type parsers, so we need to insert parens diff --git a/tests/if/pseudoenum.thrift b/tests/if/pseudoenum.thrift index c7de2f98..05d39602 100644 --- a/tests/if/pseudoenum.thrift +++ b/tests/if/pseudoenum.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ enum PerfectEnum { W = 0, diff --git a/tests/if/scoped_enums.thrift b/tests/if/scoped_enums.thrift index df14dfe5..cddf5576 100644 --- a/tests/if/scoped_enums.thrift +++ b/tests/if/scoped_enums.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ enum X { A = 1, diff --git a/tests/if/service.thrift b/tests/if/service.thrift index 84e868eb..9c10504e 100644 --- a/tests/if/service.thrift +++ b/tests/if/service.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ struct Z { 1: string name; diff --git a/tests/if/typedef_annotation.thrift b/tests/if/typedef_annotation.thrift index b31cb08f..a7d7582b 100644 --- a/tests/if/typedef_annotation.thrift +++ b/tests/if/typedef_annotation.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ typedef Foo Bar diff --git a/tests/if/versions.thrift b/tests/if/versions.thrift index cf324970..994607a8 100644 --- a/tests/if/versions.thrift +++ b/tests/if/versions.thrift @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ struct X1 { 1: i32 x;