From 28808fd81592469446c5b8d4e7db21d525fc2da1 Mon Sep 17 00:00:00 2001 From: Scott Wolchok Date: Tue, 13 Mar 2018 18:01:26 -0700 Subject: [PATCH] MIT license Fixes #60. --- AstNode.h | 8 +++--- GraphQLParser.cpp | 6 ++--- GraphQLParser.h | 6 ++--- JsonVisitor.cpp | 8 +++--- JsonVisitor.h | 8 +++--- LICENSE | 43 +++++++++++++------------------- PATENTS | 33 ------------------------ README.md | 2 +- ast/ast.py | 8 +++--- ast/c.py | 8 +++--- ast/c_impl.py | 8 +++--- ast/c_visitor_impl.py | 8 +++--- ast/casing.py | 8 +++--- ast/cxx.py | 8 +++--- ast/cxx_impl.py | 8 +++--- ast/cxx_json_visitor_header.py | 7 +++--- ast/cxx_json_visitor_impl.py | 7 +++--- ast/cxx_visitor.py | 8 +++--- ast/js.py | 16 +++++------- ast/license.py | 14 +++++------ c/GraphQLAstNode.cpp | 8 +++--- c/GraphQLAstNode.h | 8 +++--- c/GraphQLAstToJSON.cpp | 6 ++--- c/GraphQLAstToJSON.h | 6 ++--- c/GraphQLAstVisitor.cpp | 8 +++--- c/GraphQLAstVisitor.h | 8 +++--- c/GraphQLParser.cpp | 6 ++--- c/GraphQLParser.h | 6 ++--- dump_json_ast.cpp | 8 +++--- go/callbacks.go | 8 +++--- go/gotest.go | 8 +++--- lexer.cpp | 8 +++--- lexer.lpp | 8 +++--- parser.ypp | 8 +++--- python/example.py | 8 +++--- syntaxdefs.h | 8 +++--- test/JsonVisitorTests.cpp | 8 +++--- test/ParserTests.cpp | 8 +++--- test/kitchen-sink.graphql | 10 ++++---- test/schema-kitchen-sink.graphql | 10 ++++---- 40 files changed, 133 insertions(+), 245 deletions(-) delete mode 100644 PATENTS diff --git a/AstNode.h b/AstNode.h index 301979c..eb63e9a 100644 --- a/AstNode.h +++ b/AstNode.h @@ -1,10 +1,8 @@ /** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/GraphQLParser.cpp b/GraphQLParser.cpp index 5d46e78..5a8f4c0 100644 --- a/GraphQLParser.cpp +++ b/GraphQLParser.cpp @@ -1,10 +1,8 @@ /** * Copyright (c) 2015-present, Facebook, Inc. - * All rights 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 additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include "GraphQLParser.h" diff --git a/GraphQLParser.h b/GraphQLParser.h index 7b02c0a..066869f 100644 --- a/GraphQLParser.h +++ b/GraphQLParser.h @@ -1,10 +1,8 @@ /** * Copyright (c) 2015-present, Facebook, Inc. - * All rights 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 additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ /** diff --git a/JsonVisitor.cpp b/JsonVisitor.cpp index a288b5b..8797b49 100644 --- a/JsonVisitor.cpp +++ b/JsonVisitor.cpp @@ -1,10 +1,8 @@ /** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include "position.hh" diff --git a/JsonVisitor.h b/JsonVisitor.h index 319a40f..c5a97c9 100644 --- a/JsonVisitor.h +++ b/JsonVisitor.h @@ -1,10 +1,8 @@ /** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/LICENSE b/LICENSE index fd10063..d902153 100644 --- a/LICENSE +++ b/LICENSE @@ -1,30 +1,21 @@ -BSD License +MIT License -For libgraphqlparser software +Copyright (c) 2015-present, Facebook, Inc. -Copyright (c) 2015-present, Facebook, Inc. All rights reserved. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - * Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * Neither the name Facebook nor the names of its contributors may be used to - endorse or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/PATENTS b/PATENTS deleted file mode 100644 index f397ec4..0000000 --- a/PATENTS +++ /dev/null @@ -1,33 +0,0 @@ -Additional Grant of Patent Rights Version 2 - -"Software" means libgraphqlparser distributed by Facebook, Inc. - -Facebook, Inc. ("Facebook") hereby grants to each recipient of the Software -("you") a perpetual, worldwide, royalty-free, non-exclusive, irrevocable -(subject to the termination provision below) license under any Necessary -Claims, to make, have made, use, sell, offer to sell, import, and otherwise -transfer the Software. For avoidance of doubt, no license is granted under -Facebook’s rights in any patent claims that are infringed by (i) modifications -to the Software made by you or any third party or (ii) the Software in -combination with any software or other technology. - -The license granted hereunder will terminate, automatically and without notice, -if you (or any of your subsidiaries, corporate affiliates or agents) initiate -directly or indirectly, or take a direct financial interest in, any Patent -Assertion: (i) against Facebook or any of its subsidiaries or corporate -affiliates, (ii) against any party if such Patent Assertion arises in whole or -in part from any software, technology, product or service of Facebook or any of -its subsidiaries or corporate affiliates, or (iii) against any party relating -to the Software. Notwithstanding the foregoing, if Facebook or any of its -subsidiaries or corporate affiliates files a lawsuit alleging patent -infringement against you in the first instance, and you respond by filing a -patent infringement counterclaim in that lawsuit against that party that is -unrelated to the Software, the license granted hereunder will not terminate -under section (i) of this paragraph due to such counterclaim. - -A "Necessary Claim" is a claim of a patent owned by Facebook that is -necessarily infringed by the Software standing alone. - -A "Patent Assertion" is any lawsuit or other action alleging direct, indirect, -or contributory infringement or inducement to infringe any patent, including a -cross-claim or counterclaim. diff --git a/README.md b/README.md index 087f6f5..1b40b34 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ and it should also simplify the task of creating bindings to other programming languages. ## License -libgraphqlparser is BSD-licensed. We also provide an additional patent grant. +libgraphqlparser is MIT-licensed. ## Related Projects diff --git a/ast/ast.py b/ast/ast.py index 32f9226..dbe539c 100644 --- a/ast/ast.py +++ b/ast/ast.py @@ -1,10 +1,8 @@ #!/usr/bin/env python -# Copyright (c) 2015, Facebook, Inc. -# All rights reserved. +# Copyright (c) 2015-present, Facebook, Inc. # -# This source code is licensed under the BSD-style license found in the -# LICENSE file in the root directory of this source tree. An additional grant -# of patent rights can be found in the PATENTS file in the same directory. +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. from importlib import import_module diff --git a/ast/c.py b/ast/c.py index 81ae582..836a67d 100644 --- a/ast/c.py +++ b/ast/c.py @@ -1,9 +1,7 @@ -# Copyright (c) 2015, Facebook, Inc. -# All rights reserved. +# Copyright (c) 2015-present, Facebook, Inc. # -# This source code is licensed under the BSD-style license found in the -# LICENSE file in the root directory of this source tree. An additional grant -# of patent rights can be found in the PATENTS file in the same directory. +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. from casing import snake diff --git a/ast/c_impl.py b/ast/c_impl.py index a682793..5ff3c30 100644 --- a/ast/c_impl.py +++ b/ast/c_impl.py @@ -1,9 +1,7 @@ -# Copyright (c) 2015, Facebook, Inc. -# All rights reserved. +# Copyright (c) 2015-present, Facebook, Inc. # -# This source code is licensed under the BSD-style license found in the -# LICENSE file in the root directory of this source tree. An additional grant -# of patent rights can be found in the PATENTS file in the same directory. +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. from c import field_prototype, return_type, struct_name from casing import title diff --git a/ast/c_visitor_impl.py b/ast/c_visitor_impl.py index 08f363c..aac56b2 100644 --- a/ast/c_visitor_impl.py +++ b/ast/c_visitor_impl.py @@ -1,9 +1,7 @@ -# Copyright (c) 2015, Facebook, Inc. -# All rights reserved. +# Copyright (c) 2015-present, Facebook, Inc. # -# This source code is licensed under the BSD-style license found in the -# LICENSE file in the root directory of this source tree. An additional grant -# of patent rights can be found in the PATENTS file in the same directory. +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. from casing import snake from license import C_LICENSE_COMMENT diff --git a/ast/casing.py b/ast/casing.py index dc67110..4edcf6e 100644 --- a/ast/casing.py +++ b/ast/casing.py @@ -1,9 +1,7 @@ -# Copyright (c) 2015, Facebook, Inc. -# All rights reserved. +# Copyright (c) 2015-present, Facebook, Inc. # -# This source code is licensed under the BSD-style license found in the -# LICENSE file in the root directory of this source tree. An additional grant -# of patent rights can be found in the PATENTS file in the same directory. +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. def title(s): '''Capitalize the first character of s.''' diff --git a/ast/cxx.py b/ast/cxx.py index 173f768..81a1bf5 100644 --- a/ast/cxx.py +++ b/ast/cxx.py @@ -1,9 +1,7 @@ -# Copyright (c) 2015, Facebook, Inc. -# All rights reserved. +# Copyright (c) 2015-present, Facebook, Inc. # -# This source code is licensed under the BSD-style license found in the -# LICENSE file in the root directory of this source tree. An additional grant -# of patent rights can be found in the PATENTS file in the same directory. +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. import cStringIO as StringIO diff --git a/ast/cxx_impl.py b/ast/cxx_impl.py index 5afc94a..7f1b989 100644 --- a/ast/cxx_impl.py +++ b/ast/cxx_impl.py @@ -1,9 +1,7 @@ -# Copyright (c) 2015, Facebook, Inc. -# All rights reserved. +# Copyright (c) 2015-present, Facebook, Inc. # -# This source code is licensed under the BSD-style license found in the -# LICENSE file in the root directory of this source tree. An additional grant -# of patent rights can be found in the PATENTS file in the same directory. +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. from license import C_LICENSE_COMMENT diff --git a/ast/cxx_json_visitor_header.py b/ast/cxx_json_visitor_header.py index 4c59359..2f8a02a 100644 --- a/ast/cxx_json_visitor_header.py +++ b/ast/cxx_json_visitor_header.py @@ -1,9 +1,8 @@ -# Copyright (c) 2016, Facebook, Inc. +# Copyright (c) 2016-present, Facebook, Inc. # All rights 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 additional grant -# of patent rights can be found in the PATENTS file in the same directory. +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. from casing import title from license import C_LICENSE_COMMENT diff --git a/ast/cxx_json_visitor_impl.py b/ast/cxx_json_visitor_impl.py index 8fb29fc..db8f9ab 100644 --- a/ast/cxx_json_visitor_impl.py +++ b/ast/cxx_json_visitor_impl.py @@ -1,9 +1,8 @@ -# Copyright (c) 2016, Facebook, Inc. +# Copyright (c) 2016-present, Facebook, Inc. # All rights 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 additional grant -# of patent rights can be found in the PATENTS file in the same directory. +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. from casing import title from license import C_LICENSE_COMMENT diff --git a/ast/cxx_visitor.py b/ast/cxx_visitor.py index 04f9af8..91aa0b5 100644 --- a/ast/cxx_visitor.py +++ b/ast/cxx_visitor.py @@ -1,9 +1,7 @@ -# Copyright (c) 2015, Facebook, Inc. -# All rights reserved. +# Copyright (c) 2015-present, Facebook, Inc. # -# This source code is licensed under the BSD-style license found in the -# LICENSE file in the root directory of this source tree. An additional grant -# of patent rights can be found in the PATENTS file in the same directory. +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. from casing import camel, title from license import C_LICENSE_COMMENT diff --git a/ast/js.py b/ast/js.py index 9bf1dd8..cb6c023 100644 --- a/ast/js.py +++ b/ast/js.py @@ -1,9 +1,7 @@ -# Copyright (c) 2015, Facebook, Inc. -# All rights reserved. +# Copyright (c) 2015-present, Facebook, Inc. # -# This source code is licensed under the BSD-style license found in the -# LICENSE file in the root directory of this source tree. An additional grant -# of patent rights can be found in the PATENTS file in the same directory. +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. class Printer(object): @@ -16,12 +14,10 @@ def start_file(self): /* jshint ignore:start */ /** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ type Node = { diff --git a/ast/license.py b/ast/license.py index ed6c4b7..86179c8 100644 --- a/ast/license.py +++ b/ast/license.py @@ -1,16 +1,14 @@ -# Copyright (c) 2016, Facebook, Inc. +# Copyright (c) 2016-present, Facebook, Inc. # All rights 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 additional grant -# of patent rights can be found in the PATENTS file in the same directory. +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. C_LICENSE_COMMENT = '''/** - * Copyright (c) 2016, Facebook, Inc. + * Copyright (c) 2016-present, Facebook, Inc. * All rights 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 additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ ''' diff --git a/c/GraphQLAstNode.cpp b/c/GraphQLAstNode.cpp index 7418cfe..04f1edd 100644 --- a/c/GraphQLAstNode.cpp +++ b/c/GraphQLAstNode.cpp @@ -1,10 +1,8 @@ /** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include "GraphQLAstNode.h" diff --git a/c/GraphQLAstNode.h b/c/GraphQLAstNode.h index 2086dfc..0044b0b 100644 --- a/c/GraphQLAstNode.h +++ b/c/GraphQLAstNode.h @@ -1,10 +1,8 @@ /** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/c/GraphQLAstToJSON.cpp b/c/GraphQLAstToJSON.cpp index 8ab8803..b09bd4d 100644 --- a/c/GraphQLAstToJSON.cpp +++ b/c/GraphQLAstToJSON.cpp @@ -1,10 +1,8 @@ /** * Copyright (c) 2015-present, Facebook, Inc. - * All rights 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 additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include "GraphQLAstToJSON.h" diff --git a/c/GraphQLAstToJSON.h b/c/GraphQLAstToJSON.h index 1a96226..e292aea 100644 --- a/c/GraphQLAstToJSON.h +++ b/c/GraphQLAstToJSON.h @@ -1,10 +1,8 @@ /** * Copyright (c) 2015-present, Facebook, Inc. - * All rights 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 additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/c/GraphQLAstVisitor.cpp b/c/GraphQLAstVisitor.cpp index 48fb4a7..a40859a 100644 --- a/c/GraphQLAstVisitor.cpp +++ b/c/GraphQLAstVisitor.cpp @@ -1,10 +1,8 @@ /** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include "c/GraphQLAstVisitor.h" diff --git a/c/GraphQLAstVisitor.h b/c/GraphQLAstVisitor.h index 4db5abc..8e7a2fc 100644 --- a/c/GraphQLAstVisitor.h +++ b/c/GraphQLAstVisitor.h @@ -1,10 +1,8 @@ /** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/c/GraphQLParser.cpp b/c/GraphQLParser.cpp index dc09dcb..6f2c545 100644 --- a/c/GraphQLParser.cpp +++ b/c/GraphQLParser.cpp @@ -1,10 +1,8 @@ /** * Copyright (c) 2015-present, Facebook, Inc. - * All rights 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 additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include "GraphQLParser.h" diff --git a/c/GraphQLParser.h b/c/GraphQLParser.h index c4206ee..adc1fbf 100644 --- a/c/GraphQLParser.h +++ b/c/GraphQLParser.h @@ -1,10 +1,8 @@ /** * Copyright (c) 2015-present, Facebook, Inc. - * All rights 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 additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/dump_json_ast.cpp b/dump_json_ast.cpp index 7cdb535..5419f02 100644 --- a/dump_json_ast.cpp +++ b/dump_json_ast.cpp @@ -1,10 +1,8 @@ /** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include "AstNode.h" diff --git a/go/callbacks.go b/go/callbacks.go index 25a09d0..afe3f11 100644 --- a/go/callbacks.go +++ b/go/callbacks.go @@ -1,10 +1,8 @@ /** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package main diff --git a/go/gotest.go b/go/gotest.go index 627440e..1065a0a 100644 --- a/go/gotest.go +++ b/go/gotest.go @@ -1,10 +1,8 @@ /** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package main diff --git a/lexer.cpp b/lexer.cpp index 9430894..27bf9ad 100644 --- a/lexer.cpp +++ b/lexer.cpp @@ -549,12 +549,10 @@ static const flex_int16_t yy_chk[326] = #define YY_RESTORE_YY_MORE_OFFSET #line 1 "lexer.lpp" /** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #line 11 "lexer.lpp" #include diff --git a/lexer.lpp b/lexer.lpp index 70c8ac1..fb19e80 100644 --- a/lexer.lpp +++ b/lexer.lpp @@ -1,10 +1,8 @@ /** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ %{ diff --git a/parser.ypp b/parser.ypp index 2afbcac..591e885 100644 --- a/parser.ypp +++ b/parser.ypp @@ -1,10 +1,8 @@ /** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ %require "3" diff --git a/python/example.py b/python/example.py index e1a0445..6e8711e 100755 --- a/python/example.py +++ b/python/example.py @@ -1,10 +1,8 @@ #!/usr/bin/env python -# Copyright (c) 2015, Facebook, Inc. -# All rights reserved. +# Copyright (c) 2015-present, Facebook, Inc. # -# This source code is licensed under the BSD-style license found in the -# LICENSE file in the root directory of this source tree. An additional grant -# of patent rights can be found in the PATENTS file in the same directory. +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. from ctypes import * from GraphQLParser import * diff --git a/syntaxdefs.h b/syntaxdefs.h index 3965957..a61951e 100644 --- a/syntaxdefs.h +++ b/syntaxdefs.h @@ -1,10 +1,8 @@ /** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/test/JsonVisitorTests.cpp b/test/JsonVisitorTests.cpp index 0cbdea6..1fe4d9c 100644 --- a/test/JsonVisitorTests.cpp +++ b/test/JsonVisitorTests.cpp @@ -1,10 +1,8 @@ /** - * Copyright (c) 2016, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2016-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include diff --git a/test/ParserTests.cpp b/test/ParserTests.cpp index b2d846d..299f7fb 100644 --- a/test/ParserTests.cpp +++ b/test/ParserTests.cpp @@ -1,10 +1,8 @@ /** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include diff --git a/test/kitchen-sink.graphql b/test/kitchen-sink.graphql index 993de9a..008ed47 100644 --- a/test/kitchen-sink.graphql +++ b/test/kitchen-sink.graphql @@ -1,9 +1,9 @@ -# Copyright (c) 2015, Facebook, Inc. -# All rights reserved. +# Copyright (c) 2015-present, Facebook, Inc. # -# This source code is licensed under the BSD-style license found in the -# LICENSE file in the root directory of this source tree. An additional grant -# of patent rights can be found in the PATENTS file in the same directory. +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + +# (this line is padding to maintain test line numbers) query queryName($foo: ComplexType, $site: Site = MOBILE) { whoever123is: node(id: [123, 456]) { diff --git a/test/schema-kitchen-sink.graphql b/test/schema-kitchen-sink.graphql index d3dd1fe..4a44c07 100644 --- a/test/schema-kitchen-sink.graphql +++ b/test/schema-kitchen-sink.graphql @@ -1,9 +1,9 @@ -# Copyright (c) 2015, Facebook, Inc. -# All rights reserved. +# Copyright (c) 2015-present, Facebook, Inc. # -# This source code is licensed under the BSD-style license found in the -# LICENSE file in the root directory of this source tree. An additional grant -# of patent rights can be found in the PATENTS file in the same directory. +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + +# (this line is padding to maintain test line numbers) schema { query: QueryType