diff options
author | Oliver Bolte <obo@openoffice.org> | 2004-06-03 14:07:13 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2004-06-03 14:07:13 +0000 |
commit | b374ceac1409f18dee12f34a297b79ac3d09f197 (patch) | |
tree | cd8531fcf652ccdda5b553025e14fbcd72e4b201 /idlc/source/astdeclaration.cxx | |
parent | fe08290b99f908d3000e3f2082de13501582d53a (diff) |
INTEGRATION: CWS sb18 (1.6.4); FILE MERGED
2004/05/18 15:36:49 sb 1.6.4.4: #i21150# Added new feature: published.
2004/04/21 15:55:10 sb 1.6.4.3: #i21150# Cleaned up nomenclature of polymorphic struct types.
2004/04/14 08:52:28 sb 1.6.4.2: #i21150# Added support for polymorphic struct types.
2004/04/08 14:37:15 sb 1.6.4.1: #i21150# Fixed UNOIDL typedef support; initial support for polymorphic struct types.
Diffstat (limited to 'idlc/source/astdeclaration.cxx')
-rw-r--r-- | idlc/source/astdeclaration.cxx | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/idlc/source/astdeclaration.cxx b/idlc/source/astdeclaration.cxx index 27512a827b23..c52c7c750301 100644 --- a/idlc/source/astdeclaration.cxx +++ b/idlc/source/astdeclaration.cxx @@ -2,9 +2,9 @@ * * $RCSfile: astdeclaration.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: rt $ $Date: 2004-03-30 16:44:35 $ + * last change: $Author: obo $ $Date: 2004-06-03 15:07:13 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -124,6 +124,8 @@ AstDeclaration::AstDeclaration(NodeType type, const OString& name, AstScope* pSc if ( idlc()->isDocValid() ) m_documentation = OStringToOUString(idlc()->getDocumentation(), RTL_TEXTENCODING_UTF8); + + m_bPublished = idlc()->isPublished(); } @@ -165,24 +167,23 @@ void AstDeclaration::setName(const ::rtl::OString& name) m_fullName = convertName(m_scopedName); } -sal_Bool AstDeclaration::isType() const -{ - sal_Bool bIsType = sal_False; - - switch (m_nodeType) - { - case NT_interface: - case NT_struct: - case NT_union: - case NT_enum: - case NT_sequence: - case NT_array: - case NT_typedef: - case NT_predefined: - bIsType = sal_True; +bool AstDeclaration::isType() const { + switch (m_nodeType) { + case NT_interface: + case NT_instantiated_struct: + case NT_union: + case NT_enum: + case NT_sequence: + case NT_array: + case NT_typedef: + case NT_predefined: + case NT_type_parameter: + return true; + + default: + OSL_ASSERT(m_nodeType != NT_struct); // see AstStruct::isType + return false; } - - return bIsType; } sal_Bool AstDeclaration::hasAncestor(AstDeclaration* pDecl) |