xref: /AOO41X/main/autodoc/source/parser_i/idl/semnode.cxx (revision 78bc99aafea97f4987aed12e674c2d2f1166dd91)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 #include <precomp.h>
23 #include <s2_luidl/semnode.hxx>
24 
25 
26 // NOT FULLY DEFINED SERVICES
27 #include <ary/ary.hxx>
28 #include <ary/idl/i_gate.hxx>
29 #include <ary/idl/i_module.hxx>
30 #include <ary/doc/d_oldidldocu.hxx>
31 #include <s2_luidl/parsenv2.hxx>
32 
33 
34 namespace csi
35 {
36 namespace uidl
37 {
38 
39 
40 
SemanticNode()41 SemanticNode::SemanticNode()
42     :   pParentPE(0),
43         pAryGate(0),
44         pTokenResult(0)
45 {
46 }
47 
48 void
EstablishContacts(UnoIDL_PE * io_pParentPE,ary::idl::Gate & io_rGate,TokenProcessing_Result & o_rResult)49 SemanticNode::EstablishContacts( UnoIDL_PE *                io_pParentPE,
50                                  ary::idl::Gate &           io_rGate,
51                                  TokenProcessing_Result &   o_rResult )
52 {
53     pParentPE       =  io_pParentPE;
54     pAryGate        = &io_rGate;
55     pTokenResult    = &o_rResult;
56 }
57 
~SemanticNode()58 SemanticNode::~SemanticNode()
59 {
60 }
61 
62 void
SetTokenResult(E_TokenDone i_eDone,E_EnvStackAction i_eWhat2DoWithEnvStack,UnoIDL_PE * i_pParseEnv2Push)63 SemanticNode::SetTokenResult( E_TokenDone       i_eDone,
64                               E_EnvStackAction  i_eWhat2DoWithEnvStack,
65                               UnoIDL_PE *       i_pParseEnv2Push )
66 {
67     csv_assert(pTokenResult != 0);
68 
69     pTokenResult->eDone         = i_eDone;
70     pTokenResult->eStackAction  = i_eWhat2DoWithEnvStack;
71     pTokenResult->pEnv2Push     = i_pParseEnv2Push;
72 }
73 
74 
75 }   // namespace uidl
76 }   // namespace csi
77