parser.cxx (3d762826) parser.cxx (22a7caf0)
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

--- 155 unchanged lines hidden (view full) ---

164{
165 SbxVariable* pVar = GetBasic()->GetRtl()->Find( rSym, SbxCLASS_DONTCARE );
166 SbiSymDef* pDef = NULL;
167 if( pVar )
168 {
169 if( pVar->IsA( TYPE(SbxMethod) ) )
170 {
171 SbiProcDef* pProc_ = aRtlSyms.AddProc( rSym );
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

--- 155 unchanged lines hidden (view full) ---

164{
165 SbxVariable* pVar = GetBasic()->GetRtl()->Find( rSym, SbxCLASS_DONTCARE );
166 SbiSymDef* pDef = NULL;
167 if( pVar )
168 {
169 if( pVar->IsA( TYPE(SbxMethod) ) )
170 {
171 SbiProcDef* pProc_ = aRtlSyms.AddProc( rSym );
172 pProc_->SetType( pVar->GetType() );
172 SbxMethod* pMethod = (SbxMethod*) pVar;
173 if ( pMethod && pMethod->IsRuntimeFunction() )
174 {
175 pProc_->SetType( pMethod->GetRuntimeFunctionReturnType() );
176 }
177 else
178 {
179 pProc_->SetType( pVar->GetType() );
180 }
173 pDef = pProc_;
174 }
175 else
176 {
177 pDef = aRtlSyms.AddSym( rSym );
178 pDef->SetType( eType );
179 }
180 }

--- 679 unchanged lines hidden ---
181 pDef = pProc_;
182 }
183 else
184 {
185 pDef = aRtlSyms.AddSym( rSym );
186 pDef->SetType( eType );
187 }
188 }

--- 679 unchanged lines hidden ---