Пример #1
0
        public SimpleRecResult Recognize(IdContainer Container, CodeString Code, GetIdOptions Options, ref Identifier Ret)
        {
            if (Code.IsValidIdentifierName)
            {
                var List = Container.GetIdentifier(Code.ToString(), Options.Mode, Options.Func);
                Ret = Identifiers.SelectIdentifier(Container.State, List, Code, Options);
                if (Ret == null)
                {
                    return(SimpleRecResult.Failed);
                }

                if (!Identifiers.VerifyAccess(Container, Ret, Code, Options.EnableMessages))
                {
                    return(SimpleRecResult.Failed);
                }

                return(SimpleRecResult.Succeeded);
            }

            return(SimpleRecResult.Unknown);
        }