We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aeb1bd8 commit 9dcf089Copy full SHA for 9dcf089
src/context/Context.ts
@@ -207,21 +207,6 @@ export class Context {
207
return false;
208
}
209
210
- public atNestedEntityKeyLevel(parentKey: string) {
211
- const parentKeyIdx = this.propertyPath.indexOf(parentKey);
212
- if (parentKeyIdx === -1 || !this.hasLogicalId) {
213
- return false;
214
- }
215
-
216
- const childKeyIdx = parentKeyIdx + 1;
217
218
- return (
219
- this.hasLogicalId &&
220
- ((this.propertyPath.length === childKeyIdx && parentKey !== this.text) ||
221
- (this.propertyPath.length === childKeyIdx + 1 && this.propertyPath[childKeyIdx] === this.text))
222
- );
223
224
225
public getMappingKeys(): string[] {
226
if (!NodeType.isMappingNode(this.node, this.documentType)) {
227
return [];
0 commit comments