// Token: 0x06006EB2 RID: 28338 RVA: 0x001FCC7C File Offset: 0x001FAE7C private static bool GetBamlTreeNodeFromText(BamlLocalizableResourceKey key, string content, BamlTreeUpdater.BamlTreeUpdateMap bamlTreeMap, IList <BamlTreeNode> newChildrenList) { BamlStringToken[] array = BamlResourceContentUtil.ParseChildPlaceholder(content); if (array == null) { bamlTreeMap.Resolver.RaiseErrorNotifyEvent(new BamlLocalizerErrorNotifyEventArgs(key, BamlLocalizerError.IncompleteElementPlaceholder)); return(false); } bool result = true; for (int i = 0; i < array.Length; i++) { BamlStringToken.TokenType type = array[i].Type; if (type != BamlStringToken.TokenType.Text) { if (type == BamlStringToken.TokenType.ChildPlaceHolder) { BamlTreeNode bamlTreeNode = bamlTreeMap.MapUidToBamlTreeElementNode(array[i].Value); if (bamlTreeNode != null) { newChildrenList.Add(bamlTreeNode); } else { bamlTreeMap.Resolver.RaiseErrorNotifyEvent(new BamlLocalizerErrorNotifyEventArgs(new BamlLocalizableResourceKey(array[i].Value, string.Empty, string.Empty), BamlLocalizerError.InvalidUid)); result = false; } } } else { BamlTreeNode item = new BamlTextNode(array[i].Value); newChildrenList.Add(item); } } return(result); }
// Token: 0x06006E0D RID: 28173 RVA: 0x001FA83F File Offset: 0x001F8A3F internal BamlStringToken(BamlStringToken.TokenType type, string value) { this.Type = type; this.Value = value; }