/Users/deen/code/yugabyte-db/src/yb/yql/cql/ql/ptree/tree_node.cc
Line | Count | Source (jump to first uncovered line) |
1 | | //-------------------------------------------------------------------------------------------------- |
2 | | // Copyright (c) YugaByte, Inc. |
3 | | // |
4 | | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
5 | | // in compliance with the License. You may obtain a copy of the License at |
6 | | // |
7 | | // http://www.apache.org/licenses/LICENSE-2.0 |
8 | | // |
9 | | // Unless required by applicable law or agreed to in writing, software distributed under the License |
10 | | // is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
11 | | // or implied. See the License for the specific language governing permissions and limitations |
12 | | // under the License. |
13 | | // |
14 | | // |
15 | | // Parse Tree Declaration. |
16 | | //-------------------------------------------------------------------------------------------------- |
17 | | |
18 | | #include "yb/yql/cql/ql/ptree/tree_node.h" |
19 | | |
20 | | #include "yb/yql/cql/ql/ptree/sem_context.h" |
21 | | #include "yb/yql/cql/ql/util/errcodes.h" |
22 | | |
23 | | namespace yb { |
24 | | namespace ql { |
25 | | |
26 | | //-------------------------------------------------------------------------------------------------- |
27 | | // TreeNode base class. |
28 | | //-------------------------------------------------------------------------------------------------- |
29 | | |
30 | | TreeNode::TreeNode(MemoryContext *memctx, YBLocationPtr loc) |
31 | 5.32M | : MCBase(memctx), loc_(loc) { |
32 | 5.32M | } |
33 | | |
34 | 5.33M | TreeNode::~TreeNode() { |
35 | 5.33M | } |
36 | | |
37 | | // Run semantics analysis on this node. |
38 | 0 | CHECKED_STATUS TreeNode::Analyze(SemContext *sem_context) { |
39 | | // Raise unsupported error when a treenode does not implement this method. |
40 | 0 | return sem_context->Error(this, ErrorCode::FEATURE_NOT_SUPPORTED); |
41 | 0 | } |
42 | | |
43 | | } // namespace ql |
44 | | } // namespace yb |