Skip to content

Commit

Permalink
Merge pull request #65 from baronfel/patch-1
Browse files Browse the repository at this point in the history
Don't print unknown AST fragments
  • Loading branch information
7sharp9 authored Aug 4, 2020
2 parents 9b1d50c + ef0c773 commit 689464f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Myriad.Core/Ast.fs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module Ast =
| SynModuleDecl.NestedModule(ComponentInfo(attribs, typeParams, constraints, longId, xmlDoc, preferPostfix, accessibility, range), isRec, decls, _, _range) ->
let combined = longId |> List.append ns
yield! (extractTypes decls combined)
| other -> printfn "other: %A" other
| other -> ()
]

[ match ast with
Expand Down Expand Up @@ -101,4 +101,4 @@ module Ast =
let getAttribute<'a> (TypeDefn(ComponentInfo(attributes, _typeParams, _constraints, _recordIdent, _doc, _preferPostfix, _access, _), _typeDefRepr, _memberDefs, _)) =
attributes
|> List.collect (fun n -> n.Attributes)
|> List.tryFind (typeNameMatches typeof<'a>)
|> List.tryFind (typeNameMatches typeof<'a>)

0 comments on commit 689464f

Please sign in to comment.