Space Engineers
Static Public Member Functions | Static Public Attributes | List of all members
VRage.Compiler.IlChecker Class Reference

Static Public Member Functions

static bool AllowNamespaceOfTypeModAPI (Type type)
 Allows the namespace of the type for ModAPI only. More...
 
static bool AllowNamespaceOfTypeCommon (Type type)
 Allows the namespace of the type for both ModAPI and ingame programmable blocks. More...
 
static bool CheckIl (List< IlReader.IlInstruction > instructions, out Type failed, bool isIngameScript, Dictionary< Type, HashSet< MemberInfo >> allowedTypes=null)
 Checks list of IL instructions against dangerous types More...
 
static bool CheckTypeAndMember (Type type, bool isIngameScript, MemberInfo memberInfo=null)
 
static bool HasMethodInvalidAtrributes (MethodAttributes Attributes)
 
static bool IsMethodFromParent (Type classType, MethodBase method)
 
static void Clear ()
 

Static Public Attributes

static Dictionary< Type, HashSet< MemberInfo > > AllowedOperands = new Dictionary<Type, HashSet<MemberInfo>>()
 
static Dictionary< Assembly, HashSet< String > > AllowedNamespacesCommon = new Dictionary<Assembly, HashSet<string>>()
 
static Dictionary< Assembly, HashSet< String > > AllowedNamespacesModAPI = new Dictionary<Assembly, HashSet<string>>()
 

Detailed Description

Definition at line 12 of file IlChecker.cs.

Member Function Documentation

static bool VRage.Compiler.IlChecker.AllowNamespaceOfTypeCommon ( Type  type)
inlinestatic

Allows the namespace of the type for both ModAPI and ingame programmable blocks.

Parameters
typeType whose namespace needs to be whitelisted for common listing.
Returns
True if it was added, false otherwise.

Definition at line 228 of file IlChecker.cs.

static bool VRage.Compiler.IlChecker.AllowNamespaceOfTypeModAPI ( Type  type)
inlinestatic

Allows the namespace of the type for ModAPI only.

Parameters
typeType whose namespace needs to be whitelisted for ModAPI.
Returns
True if it was added, false otherwise.

Definition at line 214 of file IlChecker.cs.

static bool VRage.Compiler.IlChecker.CheckIl ( List< IlReader.IlInstruction instructions,
out Type  failed,
bool  isIngameScript,
Dictionary< Type, HashSet< MemberInfo >>  allowedTypes = null 
)
inlinestatic

Checks list of IL instructions against dangerous types

Parameters
dangerousTypeNamesFull names of dangerous types

Definition at line 241 of file IlChecker.cs.

static bool VRage.Compiler.IlChecker.CheckTypeAndMember ( Type  type,
bool  isIngameScript,
MemberInfo  memberInfo = null 
)
inlinestatic

Definition at line 271 of file IlChecker.cs.

static void VRage.Compiler.IlChecker.Clear ( )
inlinestatic

Definition at line 336 of file IlChecker.cs.

static bool VRage.Compiler.IlChecker.HasMethodInvalidAtrributes ( MethodAttributes  Attributes)
inlinestatic

Definition at line 327 of file IlChecker.cs.

static bool VRage.Compiler.IlChecker.IsMethodFromParent ( Type  classType,
MethodBase  method 
)
inlinestatic

Definition at line 331 of file IlChecker.cs.

Member Data Documentation

Dictionary<Assembly, HashSet<String> > VRage.Compiler.IlChecker.AllowedNamespacesCommon = new Dictionary<Assembly, HashSet<string>>()
static

Definition at line 15 of file IlChecker.cs.

Dictionary<Assembly, HashSet<String> > VRage.Compiler.IlChecker.AllowedNamespacesModAPI = new Dictionary<Assembly, HashSet<string>>()
static

Definition at line 16 of file IlChecker.cs.

Dictionary<Type, HashSet<MemberInfo> > VRage.Compiler.IlChecker.AllowedOperands = new Dictionary<Type, HashSet<MemberInfo>>()
static

Definition at line 14 of file IlChecker.cs.


The documentation for this class was generated from the following file: