Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 59351c9986
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 21 lines (17 sloc) 0.684 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
import System
import System.IO
import Mono.Cecil

def typeReferences(asmPath as string):
asm = AssemblyFactory.GetAssembly(asmPath)
for m as ModuleDefinition in asm.Modules:
for typeRef as TypeReference in m.TypeReferences:
yield typeRef

def header(title):
print "*" * 10, title, "*" * 10

asmPath = Project.Properties["build.dir"]
#asmPath = "c:/projects/unityscript/bin/net-1.1/"
assemblies = ("UnityScript.dll", "UnityScript.Lang.dll", "Boo.Lang.dll")
for asm in assemblies:
header asm
for t in typeReferences(Path.Combine(asmPath, asm)):
raise "${asm}: Unexpected System assembly reference '${t}'" if t.Scope.ToString().StartsWith("System,")
Something went wrong with that request. Please try again.