language-cil-0.2.2: Manipulating Common Intermediate Language AST

Language.Cil.Build

Contents

Description

Combinators for building abstract syntax.

Synopsis

Assembly ref functions

Directive functions

mdecl functions

newobj :: AssemblyName -> TypeName -> [PrimitiveType] -> MethodDeclSource

Creates a new object. Note that this function assumes the constructor returns Void. If this is not the case, call the Newobj constructor manually.

Convenient AST functions

label :: Label -> MethodDecl -> MethodDeclSource

Relabel a labelled mdecl with a new label.

simpleAssembly :: [MethodDecl] -> AssemblySource

Create a simple Assembly with one method containing the provided MethodDecls.