public static DictionaryDeclarationNode CreateDictionaryDeclaration(Dictionary<AstNode, AstNode> expressions) { var ret = new DictionaryDeclarationNode(ModuleBuilder.SourceLocation); foreach (var pair in expressions) ret.Children.Add(new KeyValuePairNode(ModuleBuilder.SourceLocation, pair.Key, pair.Value)); return ret; }
public void Accept(DictionaryDeclarationNode node) { }
public void Accept(DictionaryDeclarationNode node) { node.VisitChildren(this); method.Emit(node.SourceLocation, InstructionType.BuildDictionary, node.Children.Count); }