Open this page in the API Guide

MetricSet.isMatchingElement Method

Given two elements, determines if they represent the same source element and are promoted to the same hierarchy, if applicable.
 

Parameters

element1

Type: AnalysisElementUsage
The first element.
element2

Type: AnalysisElementUsage
The second element.

Return Value


Type: Boolean
true if the elements are backed by the same source element; otherwise false.