コード例 #1
0
        private void Callout_EndOfType( )
        {
            TypeNameFrame frame = this._stack.Pop();
            XamlTypeName  item  = new XamlTypeName(frame.Namespace, frame.Name, frame.TypeArgs);

            frame = this._stack.Peek();
            if (frame.TypeArgs == null)
            {
                frame.AllocateTypeArgs();
            }
            frame.TypeArgs.Add(item);
        }
コード例 #2
0
        private XamlTypeName CollectNameFromStack( )
        {
            if (this._stack.Count != 1)
            {
                throw new TypeNameParserException(SR.Get("InvalidTypeString", new object[] { this._inputText }));
            }
            TypeNameFrame frame = this._stack.Peek();

            if (frame.TypeArgs.Count != 1)
            {
                throw new TypeNameParserException(SR.Get("InvalidTypeString", new object[] { this._inputText }));
            }
            return(frame.TypeArgs[0]);
        }
コード例 #3
0
        private void Callout_FoundName(string prefix, string name)
        {
            TypeNameFrame item = new TypeNameFrame
            {
                Name = name
            };
            string str = this._prefixResolver(prefix);

            if (str == null)
            {
                throw new TypeNameParserException(SR.Get("PrefixNotFound", new object[] { prefix }));
            }
            item.Namespace = str;
            this._stack.Push(item);
        }
コード例 #4
0
        private void Callout_Subscript(string subscript)
        {
            TypeNameFrame local1 = this._stack.Peek();

            local1.Name = local1.Name + subscript;
        }