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(); }
public void VisitNode(JSAssembly asm) { Output.AssemblyReference(asm.Assembly); }