System.Xml.Xsl.XsltOld.Compiler.CompileAvt C# (CSharp) Method

CompileAvt() private method

private CompileAvt ( string avtText, bool &constant ) : ArrayList
avtText string
constant bool
return System.Collections.ArrayList
        internal ArrayList CompileAvt(string avtText, out bool constant)
        {
            Debug.Assert(avtText != null);
            ArrayList list = new ArrayList();

            constant = true;
            /* Parse input.Value as AVT */
            {
                int pos = 0;
                bool isAvt;
                while (GetNextAvtLex(avtText, ref pos, this.AvtStringBuilder, out isAvt))
                {
                    string lex = this.AvtStringBuilder.ToString();
                    if (isAvt)
                    {
                        list.Add(new AvtEvent(this.AddStringQuery(lex)));
                        constant = false;
                    }
                    else
                    {
                        list.Add(new TextEvent(lex));
                    }
                }
            }
            Debug.Assert(!constant || list.Count <= 1, "We can't have more then 1 text event if now {avt} found");
            return list;
        }

Same methods

Compiler::CompileAvt ( string avtText ) : ArrayList

Usage Example

Ejemplo n.º 1
0
        internal static Avt CompileAvt(Compiler compiler, string avtText) {
            Debug.Assert(compiler != null);
            Debug.Assert(avtText != null);

            bool constant;
            ArrayList list = compiler.CompileAvt(avtText, out constant);
            return constant ? new Avt(avtText) : new Avt(list);
        }
All Usage Examples Of System.Xml.Xsl.XsltOld.Compiler::CompileAvt