@@ -49,28 +49,28 @@ namespace rift::ast
49
49
50
50
void InitTypeFromFileType (Tree& ast, Id id, p::Tag typeId);
51
51
52
- Id CreateType (Tree& ast, p::Tag typeId, Tag name = Tag::None(), StringView path = {});
52
+ Id CreateType (Tree& ast, p::Tag typeId, p:: Tag name = p:: Tag::None(), p:: StringView path = {});
53
53
54
- void RemoveTypes (TAccessRef<TWrite<CChild>, TWrite<CParent>, CFileRef> access, TView<Id> types ,
55
- bool removeFromDisk = false );
54
+ void RemoveTypes (p:: TAccessRef<p:: TWrite<CChild>, p:: TWrite<CParent>, CFileRef> access,
55
+ p::TView<Id> types, bool removeFromDisk = false );
56
56
57
- void SerializeType (Tree& ast, Id id, String& data);
58
- void DeserializeType (Tree& ast, Id id, const String& data);
57
+ void SerializeType (Tree& ast, p:: Id id, p:: String& data);
58
+ void DeserializeType (Tree& ast, p:: Id id, const p:: String& data);
59
59
60
60
Id FindTypeByPath (Tree& ast, p::StringView path);
61
- bool IsClassType (TAccessRef<CDeclClass> access, Id typeId);
62
- bool IsStructType (TAccessRef<CDeclStruct> access, Id typeId);
63
- bool IsStaticType (TAccessRef<CDeclStatic> access, Id typeId);
64
- bool HasVariables (TAccessRef<CDeclType> access, Id typeId);
65
- bool HasFunctions (TAccessRef<CDeclType> access, Id typeId);
66
- bool HasFunctionBodies (TAccessRef<CDeclType> access, Id typeId);
61
+ bool IsClassType (p:: TAccessRef<CDeclClass> access, Id typeId);
62
+ bool IsStructType (p:: TAccessRef<CDeclStruct> access, Id typeId);
63
+ bool IsStaticType (p:: TAccessRef<CDeclStatic> access, Id typeId);
64
+ bool HasVariables (p:: TAccessRef<CDeclType> access, Id typeId);
65
+ bool HasFunctions (p:: TAccessRef<CDeclType> access, Id typeId);
66
+ bool HasFunctionBodies (p:: TAccessRef<CDeclType> access, Id typeId);
67
67
68
- Id AddVariable (TypeRef type, Tag name);
69
- Id AddFunction (TypeRef type, Tag name);
68
+ Id AddVariable (TypeRef type, p:: Tag name);
69
+ Id AddFunction (TypeRef type, p:: Tag name);
70
70
71
71
Id AddCall (TypeRef type, Id targetFunctionId);
72
- Id AddFunctionInput (Tree& ast, Id functionId, Tag name = Tag::None());
73
- Id AddFunctionOutput (Tree& ast, Id functionId, Tag name = Tag::None());
72
+ Id AddFunctionInput (Tree& ast, Id functionId, p:: Tag name = p:: Tag::None());
73
+ Id AddFunctionOutput (Tree& ast, Id functionId, p:: Tag name = p:: Tag::None());
74
74
75
75
Id AddIf (TypeRef type);
76
76
Id AddReturn (TypeRef type);
@@ -80,21 +80,23 @@ namespace rift::ast
80
80
Id AddUnaryOperator (TypeRef type, UnaryOperatorType operatorType);
81
81
Id AddBinaryOperator (TypeRef type, BinaryOperatorType operatorType);
82
82
83
- Id FindChildByName (TAccessRef<CNamespace, CParent> access, Id ownerId, Tag functionName);
83
+ Id FindChildByName (p:: TAccessRef<CNamespace, CParent> access, Id ownerId, p:: Tag functionName);
84
84
85
- using RemoveAccess = TAccess<TWrite<CChanged>, TWrite<CFileDirty>, TWrite<CStmtInput>,
86
- TWrite<CStmtOutputs>, TWrite<CParent>, TWrite<CChild>, CFileRef>;
87
- void RemoveNodes (const RemoveAccess& access, TView<Id> ids);
85
+ using RemoveAccess =
86
+ p::TAccess<p::TWrite<CChanged>, p::TWrite<CFileDirty>, p::TWrite<CStmtInput>,
87
+ p::TWrite<CStmtOutputs>, p::TWrite<CParent>, p::TWrite<CChild>, CFileRef>;
88
+ void RemoveNodes (const RemoveAccess& access, p::TView<Id> ids);
88
89
89
- bool CopyExpressionType (TAccessRef<TWrite<CExprTypeId>> access, Id sourcePinId, Id targetPinId);
90
+ bool CopyExpressionType (
91
+ p::TAccessRef<p::TWrite<CExprTypeId>> access, Id sourcePinId, Id targetPinId);
90
92
91
93
92
94
void RegisterFileType (RiftType&& descriptor);
93
95
void UnregisterFileType (p::Tag typeId);
94
96
95
97
p::TView<const RiftType> GetFileTypes ();
96
98
const RiftType* FindFileType (p::Tag typeId);
97
- const RiftType* FindFileType (p::TAccessRef<ast:: CDeclType> access, ast::Id typeId);
99
+ const RiftType* FindFileType (p::TAccessRef<CDeclType> access, ast::Id typeId);
98
100
99
101
template <typename TagType>
100
102
void RegisterFileType (p::Tag typeId, RiftTypeSettings settings)
0 commit comments