case LabelStmtClass:
return LabelStmt::CreateImpl(D);
+ case MemberExprClass:
+ return MemberExpr::CreateImpl(D);
+
case NullStmtClass:
return NullStmt::CreateImpl(D);
return new LabelStmt(IdentLoc,Label,SubStmt);
}
+void MemberExpr::EmitImpl(Serializer& S) const {
+ S.Emit(MemberLoc);
+ S.EmitPtr(MemberDecl);
+ S.EmitBool(IsArrow);
+ S.EmitOwnedPtr(Base);
+}
+
+MemberExpr* MemberExpr::CreateImpl(Deserializer& D) {
+ SourceLocation L = SourceLocation::ReadVal(D);
+ FieldDecl* MemberDecl = cast<FieldDecl>(D.ReadPtr<Decl>());
+ bool IsArrow = D.ReadBool();
+ Expr* base = D.ReadOwnedPtr<Expr>();
+
+ return new MemberExpr(base,IsArrow,MemberDecl,L);
+}
+
void NullStmt::EmitImpl(Serializer& S) const {
S.Emit(SemiLoc);
}
// Iterators
virtual child_iterator child_begin();
virtual child_iterator child_end();
+
+ virtual void EmitImpl(llvm::Serializer& S) const;
+ static MemberExpr* CreateImpl(llvm::Deserializer& D);
};
/// OCUVectorElementExpr - This represents access to specific elements of a