summaryrefslogtreecommitdiff
path: root/cpp/include/Slice/Parser.h
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2014-03-19 12:45:55 -0700
committerMark Spruiell <mes@zeroc.com>2014-03-19 12:45:55 -0700
commitcdcffbcc3c3c052afdeb772ff0167e7a90b525bb (patch)
tree4f16ee41ef7d33394c44e9db81e4d6cd89908250 /cpp/include/Slice/Parser.h
parentfixing testicedist.py for 5487 (diff)
downloadice-cdcffbcc3c3c052afdeb772ff0167e7a90b525bb.tar.bz2
ice-cdcffbcc3c3c052afdeb772ff0167e7a90b525bb.tar.xz
ice-cdcffbcc3c3c052afdeb772ff0167e7a90b525bb.zip
merging javascript branch
Diffstat (limited to 'cpp/include/Slice/Parser.h')
-rw-r--r--cpp/include/Slice/Parser.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/include/Slice/Parser.h b/cpp/include/Slice/Parser.h
index 1faf592ed21..a057c12a2d5 100644
--- a/cpp/include/Slice/Parser.h
+++ b/cpp/include/Slice/Parser.h
@@ -1,6 +1,6 @@
// **********************************************************************
//
-// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
+// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
@@ -458,6 +458,7 @@ public:
bool hasOnlyDictionaries(DictionaryList&) const;
bool hasClassDecls() const;
bool hasClassDefs() const;
+ bool hasOnlyClassDecls() const;
bool hasAbstractClassDefs() const;
bool hasNonLocalDataOnlyClasses() const;
bool hasOtherConstructedOrExceptions() const; // Exceptions or constructed types other than classes.
@@ -1062,6 +1063,9 @@ public:
virtual void visit(ParserVisitor*, bool);
BuiltinPtr builtin(Builtin::Kind); // Not const, as builtins are created on the fly. (Lazy initialization.)
+
+ void addTopLevelModule(const std::string&, const std::string&);
+ std::set<std::string> getTopLevelModules(const std::string&) const;
private:
@@ -1087,6 +1091,7 @@ private:
FeatureProfile _featureProfile;
std::map<std::string, DefinitionContextPtr> _definitionContextMap;
std::map<int, std::string> _typeIds;
+ std::map< std::string, std::set<std::string> > _fileTopLevelModules;
};
extern SLICE_API Unit* unit; // The current parser for bison/flex