Skip to content

Commit ceb4e86

Browse files
Update Decoder.swift
Exposing `tag` publicly outside of Decoder.
1 parent a8af498 commit ceb4e86

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/Yams/Decoder.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,12 @@ extension Decoder {
351351
public var mark: Mark? {
352352
return (self as? _Decoder)?.node.mark
353353
}
354+
355+
/// The `Tag` for the underlying `Node` that has been decoded.
356+
public var tag: Tag? {
357+
return (self as? _Decoder)?.node.tag
358+
}
359+
354360
}
355361

356362
// MARK: TopLevelDecoder

0 commit comments

Comments
 (0)