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;
}