HLSL non-functional: Generalize namespace nesting.
Also use this to move deferred member-function-body parsing to a better
place.
This should also be well poised for implementing the 'namespace' keyword.
diff --git a/hlsl/hlslParseHelper.h b/hlsl/hlslParseHelper.h
index 602bb86..904ec0f 100755
--- a/hlsl/hlslParseHelper.h
+++ b/hlsl/hlslParseHelper.h
@@ -160,9 +160,10 @@
void pushScope() { symbolTable.push(); }
void popScope() { symbolTable.pop(0); }
- void pushThis(const TString& name);
- void popThis();
- TString* getFullMemberFunctionName(const TString& name, bool isStatic) const;
+ void pushNamespace(const TString& name);
+ void popNamespace();
+ TString* getFullNamespaceName(const TString& localName) const;
+ void addScopeMangler(TString&);
void pushSwitchSequence(TIntermSequence* sequence) { switchSequenceStack.push_back(sequence); }
void popSwitchSequence() { switchSequenceStack.pop_back(); }