public static IdentifierScope GetActual(this IdentifierScope current, IdentifierScope inherited) { if (current == IdentifierScope.Inherit) { return inherited; } else { return current; } }
public static IdentifierScope GetActual(this IdentifierScope current, IdentifierScope inherited) { if (current == IdentifierScope.Inherit) { return(inherited); } else { return(current); } }
private void LoadProperties(IClass @class, HashSet <IClass> alreadyImplemented) { if (!alreadyImplemented.Add(@class)) { return; } foreach (var attConstraint in @class.AttributeConstraints) { LoadAttributeConstraint(attConstraint); } foreach (var refConstraint in @class.ReferenceConstraints) { LoadReferenceConstraint(refConstraint); } foreach (var att in @class.Attributes) { var property = LoadAttribute(att); if (att == @class.Identifier && _identifierProperty == null) { _identifierProperty = property; _identifierScope = @class.IdentifierScope; } } foreach (var reference in @class.References) { LoadReference(reference); } foreach (var baseType in @class.BaseTypes) { LoadProperties(baseType, alreadyImplemented); } }
public ScopedIdentifier(IAttribute identifier, IdentifierScope scope) : this() { Identifier = identifier; Scope = scope; }