Example #1
0
        public static TypeDeclarationList Create(NonCodeScope Scope)
        {
            var Ret = new TypeDeclarationList();
            var Rec = Scope.State.Language.TypeDeclRecognizer;

            return(Rec != null && !Rec.Recognize(Scope, Ret) ? null : Ret);
        }
Example #2
0
        public bool Recognize(NonCodeScope Scope)
        {
            var State = Scope.State;

            if (State.Language.AliasDeclRecognizer != null)
            {
                if (!State.Language.AliasDeclRecognizer.Recognize(Scope, this))
                {
                    return(false);
                }
            }

            return(true);
        }