-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use more effectively that Node
is an enum
#105
Conversation
* Change parameter type of `ScalarConstructible.construct(from:)` from `Node` to `Node.Scalar` * Change `Constructor`: * Split `Map` type into `ScalarMap`, `MappingMap` and `SequenceMap` * Split `defaultMap` static property into `defaultScalarMap`, `defaultMappingMap` and `defaultSequenceMap` * Change `init(_:)` to `init(_:_:_:)`
This reverts commit bc25555.
b7435be
to
fd28473
Compare
8278d2d
to
e4a0b96
Compare
CHANGELOG.md
Outdated
@@ -2,7 +2,17 @@ | |||
|
|||
##### Breaking | |||
|
|||
* None. | |||
* Some APIs are changed related to `ScalarConstructible` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are -> have
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
[skip ci]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great.
Thanks for reviews! |
ScalarConstructible.construct(from:)
fromNode
toNode.Scalar
Constructor
:Map
type intoScalarMap
,MappingMap
andSequenceMap
defaultMap
static property intodefaultScalarMap
,defaultMappingMap
anddefaultSequenceMap
init(_:)
toinit(_:_:_:)