Skip to content

Commit

Permalink
minor simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
amitu committed Nov 23, 2024
1 parent 873c616 commit 51a5ef7
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions v0.5/fastn-unresolved/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,10 @@ pub struct Definition {

#[derive(Debug, Clone)]
pub enum InnerDefinition {
SymbolAlias {
to: Symbol,
},
ModuleAlias {
to: Symbol,
},
SymbolAlias(Symbol),
ModuleAlias(Symbol),
Component {
properties: Vec<UR<Argument, fastn_resolved::Argument>>,
arguments: Vec<UR<Argument, fastn_resolved::Argument>>,
body: Vec<UR<ComponentInvocation, fastn_resolved::ComponentInvocation>>,
},
Variable {
Expand Down Expand Up @@ -102,16 +98,16 @@ pub enum InnerDefinition {
body: Vec<UR<fastn_section::Tes, fastn_resolved::FunctionExpression>>,
// body: Vec<UR<fastn_section::Tes, fastn_fscript::Expression>>,
},
TypeAlias {
kind: UR<Kind, fastn_resolved::Kind>,
/// ```ftd
/// -- type foo: person
/// name: foo ;; we are updating / setting the default value
/// ```
arguments: Vec<UR<Property, fastn_resolved::Property>>,
},
// TypeAlias {
// kind: UR<Kind, fastn_resolved::Kind>,
// /// ```ftd
// /// -- type foo: person
// /// name: foo ;; we are updating / setting the default value
// /// ```
// arguments: Vec<UR<Property, fastn_resolved::Property>>,
// },
Record {
properties: Vec<UR<Argument, fastn_resolved::Argument>>,
arguments: Vec<UR<Argument, fastn_resolved::Argument>>,
},
// TODO: OrType(fastn_section::Section),
// TODO: Module(fastn_section::Section),
Expand Down

0 comments on commit 51a5ef7

Please sign in to comment.