source: dev/trunk/ab5.0/abdev/ab_common/src/NamespaceSupporter.cpp@ 508

Last change on this file since 508 was 508, checked in by dai_9181, 16 years ago

Symbolコンストラクタを少なくし、LexicalAnalyzer::FullNameToSymbolメソッドを実装。

File size: 555 bytes
RevLine 
[206]1#include "stdafx.h"
2
[507]3using namespace ActiveBasic::Common::Lexical;
[195]4
[507]5bool NamespaceSupporter::ImportsNamespace( const NamespaceScopes &namespaceScopes )
[199]6{
[508]7 _ASSERT( allNamespaceScopesCollection );
[507]8 if( !allNamespaceScopesCollection->IsExist( namespaceScopes ) ){
[199]9 return false;
10 }
[195]11
[199]12 this->importedNamespaces.push_back( namespaceScopes );
13
14 return true;
15}
[507]16
17bool NamespaceSupporter::ImportsNamespace( const std::string &namespaceStr )
18{
19 NamespaceScopes namespaceScopes( namespaceStr );
20
21 return ImportsNamespace( namespaceScopes );
22}
Note: See TracBrowser for help on using the repository browser.