Ast editor rondtrip

This commit is contained in:
Michael Schimmel
2025-11-28 16:07:47 +01:00
parent 0b4201fe9b
commit 521d0ac28f
10 changed files with 1247 additions and 909 deletions
-17
View File
@@ -38,14 +38,6 @@ type
procedure Add(const Key: TMonoCacheKey; const Func: TSpecializedMethod);
end;
TCompiledFunction = record
public
Func: TDataValue.TFunc;
StaticType: IStaticType;
IsPure: Boolean;
constructor Create(const AFunc: TDataValue.TFunc; const AStaticType: IStaticType; AIsPure: Boolean);
end;
// This transformer runs *after* TypeChecker.
// It specializes all statically resolvable function calls (RTL and user-defined)
// by replacing them with nodes that have a direct StaticTarget.
@@ -271,13 +263,4 @@ begin
ArgTypes := AArgTypes;
end;
{ TCompiledFunction }
constructor TCompiledFunction.Create(const AFunc: TDataValue.TFunc; const AStaticType: IStaticType; AIsPure: Boolean);
begin
Func := AFunc;
StaticType := AStaticType;
IsPure := AIsPure;
end;
end.