Exemplo n.º 1
0
        public void EmitAssemblyEntryPoint(AssemblyDefinition assembly, MethodDefinition entryMethod, MethodSignature signature)
        {
            Formatter.WriteRaw("JSIL.SetEntryPoint");
            Formatter.LPar();

            Formatter.AssemblyReference(assembly);

            Formatter.Comma();

            var context = new TypeReferenceContext();

            Formatter.TypeReference(entryMethod.DeclaringType, context);

            Formatter.Comma();

            Formatter.Value(entryMethod.Name);

            Formatter.Comma();

            Formatter.MethodSignature(
                entryMethod, signature, context
                );

            Formatter.RPar();
            Formatter.Semicolon(true);

            Formatter.NewLine();
        }
Exemplo n.º 2
0
 public void VisitNode(JSAssembly asm)
 {
     Output.AssemblyReference(asm.Assembly);
 }