The Content and PartialContent methods deal with the case where the caller knows what structure is expected within the body, but sometimes the structure of a body is just a free-form set of attributes that the caller needs to enumerate. The idea here is that the block in question must contain only attributes, and no child blocks. For JSON this just entails interpreting every property as an attribute. For native syntax later this will mean producing an error diagnostic if any blocks appear within the body. |
||
---|---|---|
.. | ||
json | ||
diagnostic_text_test.go | ||
diagnostic_text.go | ||
diagnostic.go | ||
doc.go | ||
merged_test.go | ||
merged.go | ||
pos.go | ||
schema.go | ||
structure.go |