Keeping track of imported names, resolve enum storage types, some finetuning.
diff --git a/ScalarType.h b/ScalarType.h
index 2bd7cae..61220d6 100644
--- a/ScalarType.h
+++ b/ScalarType.h
@@ -27,6 +27,8 @@
 
     void dump(Formatter &out) const override;
 
+    const ScalarType *resolveToScalarType() const override;
+
     std::string getCppType(StorageMode mode, std::string *extra) const override;
 
     void emitReaderWriter(
@@ -37,6 +39,15 @@
             bool isReader,
             ErrorMode mode) const override;
 
+    void emitReaderWriterWithCast(
+            Formatter &out,
+            const std::string &name,
+            const std::string &parcelObj,
+            bool parcelObjIsPointer,
+            bool isReader,
+            ErrorMode mode,
+            bool needsCast) const;
+
 private:
     Kind mKind;