docs: function containsMatchingReferenceDiscriminant(source, target) {
              return target.kind === 172 /* PropertyAccessExpression */ &&
                  containsMatchingReference(source, target.expression) &&
                  isDiscriminantProperty(getDeclaredTypeOfReference(target.expression), target.name.text);
          }