Skip to content

Commit 38beb5e

Browse files
committed
Update Fabulous Ast [1.0.0-pre16]
1 parent 36c5f7c commit 38beb5e

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

tools/MetaModelGenerator/GenerateTypes.fs

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,6 @@ module GenerateTypes =
2828
)
2929
|> String.concat ""
3030

31-
type ModuleOrNamespaceExtensions =
32-
/// Allows Anonymous Module components to be yielded directly into a Module
33-
/// Useful since there's no common holder of declarations or generic WidgetBuilder than can be used
34-
/// when yielding different types of declarations
35-
[<Extension>]
36-
static member inline Yield(_: CollectionBuilder<'parent, ModuleDecl>, x: WidgetBuilder<AnonymousModuleNode>) =
37-
let node = Gen.mkOak x
38-
39-
let ws =
40-
node.Declarations
41-
|> List.map (fun x -> Ast.EscapeHatch(x).Compile())
42-
|> List.toArray
43-
|> MutStackArray1.fromArray
44-
45-
{ Widgets = ws }
4631

4732
let JToken = LongIdent(nameof JToken)
4833

@@ -440,7 +425,7 @@ module GenerateTypes =
440425
interfaceStructures
441426
|> Array.map (fun s ->
442427
let widget =
443-
Interface($"I{s.Name}") {
428+
TypeDefn($"I{s.Name}") {
444429
let properties = s.PropertiesSafe
445430

446431
for p in properties do
@@ -453,7 +438,7 @@ module GenerateTypes =
453438
p.Type
454439
p
455440

456-
let ap = AbstractProperty(fi.Name, fi.TypeInfo)
441+
let ap = AbstractSlot(fi.Name, fi.TypeInfo)
457442

458443
yield
459444
fi.StructuredDocs

tools/MetaModelGenerator/MetaModelGenerator.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<ItemGroup>
77
<PackageReference Include="Argu" Version="*" />
88
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
9-
<PackageReference Include="Fabulous.AST" Version="[1.0.0-pre12]" />
9+
<PackageReference Include="Fabulous.AST" Version="[1.0.0-pre16]" />
1010
</ItemGroup>
1111
<ItemGroup>
1212
<Compile Include="../../src/OptionConverter.fs" />

0 commit comments

Comments
 (0)