mirror of
https://github.com/openappsec/openappsec.git
synced 2025-11-16 09:21:54 +03:00
Feb 15th 2023 update
This commit is contained in:
36
external/graphqlparser/AstNode.h
vendored
Normal file
36
external/graphqlparser/AstNode.h
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* Copyright 2019-present, GraphQL Foundation
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "location.hh"
|
||||
|
||||
namespace facebook {
|
||||
namespace graphql {
|
||||
namespace ast {
|
||||
|
||||
namespace visitor {
|
||||
class AstVisitor;
|
||||
}
|
||||
|
||||
class Node {
|
||||
yy::location location_;
|
||||
public:
|
||||
explicit Node(const yy::location &location)
|
||||
: location_(location) {}
|
||||
|
||||
virtual ~Node() {}
|
||||
|
||||
const yy::location &getLocation() const
|
||||
{ return location_; }
|
||||
|
||||
virtual void accept(visitor::AstVisitor *visitor) const = 0;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user