Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 public void Accept(DictionaryDeclarationNode node)
 {
 }
Ejemplo n.º 3
0
 public void Accept(DictionaryDeclarationNode node)
 {
     node.VisitChildren(this);
     method.Emit(node.SourceLocation, InstructionType.BuildDictionary, node.Children.Count);
 }