Skip to content

Commit

Permalink
completed analyzer test coverage except for anyType
Browse files Browse the repository at this point in the history
  • Loading branch information
david518yang committed Apr 26, 2024
2 parents 77a8118 + 2fcb607 commit 07fd76e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/analyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,14 @@ export default function analyze(match) {
must(e.type?.kind === 'ArrayType', 'Expected an array', at)
}

<<<<<<< HEAD
<<<<<<< HEAD
// function mustHaveAnOptionalType(e, at) {
// must(e.type?.kind === 'OptionalType', 'Expected an optional', at)
// }

=======
>>>>>>> 2fcb6074c2f809f4cb62ad91e6677f01c2f79ffa
=======
>>>>>>> 2fcb6074c2f809f4cb62ad91e6677f01c2f79ffa
function mustHaveAClassType(e, at) {
Expand Down Expand Up @@ -192,10 +195,13 @@ export default function analyze(match) {
return 'string'
case 'BoolType':
return 'boolean'
<<<<<<< HEAD
<<<<<<< HEAD
case 'AnyType':
return 'any'
=======
>>>>>>> 2fcb6074c2f809f4cb62ad91e6677f01c2f79ffa
=======
>>>>>>> 2fcb6074c2f809f4cb62ad91e6677f01c2f79ffa
case 'ClassType':
return type.name
Expand Down

0 comments on commit 07fd76e

Please sign in to comment.