public ScopedNameToken(string content, int lineIndex, ScopeLocationOptions scopeLocation) : base(content, lineIndex) { if (!Enum.IsDefined(typeof(ScopeLocationOptions), scopeLocation)) { throw new ArgumentOutOfRangeException("scopeLocation"); } ScopeLocation = scopeLocation; }
public DeclaredReferenceDetails(ReferenceTypeOptions referenceType, ScopeLocationOptions scopeLocation) { if (!Enum.IsDefined(typeof(ReferenceTypeOptions), referenceType)) { throw new ArgumentOutOfRangeException("referenceType"); } if (!Enum.IsDefined(typeof(ScopeLocationOptions), scopeLocation)) { throw new ArgumentOutOfRangeException("scopeLocation"); } ReferenceType = referenceType; ScopeLocation = scopeLocation; }