@optique/core 1.0.0-dev.1789 → 1.0.0-dev.1791
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -63,7 +63,7 @@ function getWrappedChildParseState(parentState, childState, parser) {
|
|
|
63
63
|
const annotations = require_annotations.getAnnotations(parentState);
|
|
64
64
|
const shouldInheritAnnotations = Reflect.get(parser, require_parser.inheritParentAnnotationsKey) === true;
|
|
65
65
|
if (childState == null) {
|
|
66
|
-
if (annotations !== void 0 && shouldInheritAnnotations) return require_annotations.injectAnnotations(
|
|
66
|
+
if (annotations !== void 0 && shouldInheritAnnotations) return require_annotations.injectAnnotations(childState, annotations);
|
|
67
67
|
return childState;
|
|
68
68
|
}
|
|
69
69
|
if (annotations === void 0 || typeof childState !== "object" || require_annotations.getAnnotations(childState) === annotations || !shouldInheritAnnotations) return childState;
|
|
@@ -80,7 +80,7 @@ function getWrappedChildState(parentState, childState, parser) {
|
|
|
80
80
|
const annotations = require_annotations.getAnnotations(parentState);
|
|
81
81
|
const shouldInheritAnnotations = Reflect.get(parser, require_parser.inheritParentAnnotationsKey) === true;
|
|
82
82
|
if (childState == null) {
|
|
83
|
-
if (annotations !== void 0 && shouldInheritAnnotations) return require_annotations.injectAnnotations(
|
|
83
|
+
if (annotations !== void 0 && shouldInheritAnnotations) return require_annotations.injectAnnotations(childState, annotations);
|
|
84
84
|
return childState;
|
|
85
85
|
}
|
|
86
86
|
if (annotations === void 0 || typeof childState !== "object" || require_annotations.getAnnotations(childState) === annotations) return childState;
|
package/dist/annotation-state.js
CHANGED
|
@@ -63,7 +63,7 @@ function getWrappedChildParseState(parentState, childState, parser) {
|
|
|
63
63
|
const annotations = getAnnotations(parentState);
|
|
64
64
|
const shouldInheritAnnotations = Reflect.get(parser, inheritParentAnnotationsKey) === true;
|
|
65
65
|
if (childState == null) {
|
|
66
|
-
if (annotations !== void 0 && shouldInheritAnnotations) return injectAnnotations(
|
|
66
|
+
if (annotations !== void 0 && shouldInheritAnnotations) return injectAnnotations(childState, annotations);
|
|
67
67
|
return childState;
|
|
68
68
|
}
|
|
69
69
|
if (annotations === void 0 || typeof childState !== "object" || getAnnotations(childState) === annotations || !shouldInheritAnnotations) return childState;
|
|
@@ -80,7 +80,7 @@ function getWrappedChildState(parentState, childState, parser) {
|
|
|
80
80
|
const annotations = getAnnotations(parentState);
|
|
81
81
|
const shouldInheritAnnotations = Reflect.get(parser, inheritParentAnnotationsKey) === true;
|
|
82
82
|
if (childState == null) {
|
|
83
|
-
if (annotations !== void 0 && shouldInheritAnnotations) return injectAnnotations(
|
|
83
|
+
if (annotations !== void 0 && shouldInheritAnnotations) return injectAnnotations(childState, annotations);
|
|
84
84
|
return childState;
|
|
85
85
|
}
|
|
86
86
|
if (annotations === void 0 || typeof childState !== "object" || getAnnotations(childState) === annotations) return childState;
|