Antlr4.Runtime.Atn.ATNDeserializer.IsFeatureSupported C# (CSharp) Метод

IsFeatureSupported() защищенный Метод

Determines if a particular serialized representation of an ATN supports a particular feature, identified by the Guid used for serializing the ATN at the time the feature was first introduced.
protected IsFeatureSupported ( System.Guid feature, System.Guid actualUuid ) : bool
feature System.Guid /// The /// /// marking the first time the feature was /// supported in the serialized ATN. ///
actualUuid System.Guid /// The /// /// of the actual serialized ATN which is /// currently being deserialized. ///
Результат bool
        protected internal virtual bool IsFeatureSupported(Guid feature, Guid actualUuid)
        {
            int featureIndex = SupportedUuids.IndexOf(feature);
            if (featureIndex < 0)
            {
                return false;
            }
            return SupportedUuids.IndexOf(actualUuid) >= featureIndex;
        }