Nemerle Documentation

TypeBuilder Members

TypeBuilder overview

Public Static Methods

Init  
Iter Iterate over all types defined in source code.
IterConditionally  
Run Main function of type declaration handling pass.
SourceTopIter Iterate over top level types in source code order.
TopIter Iterate over top level types in inheritance order.

Public Instance Properties

Accessibility  
Attributes  
AttributeTargets  
BaseType Returns null if there isn't any
DeclaringType Return type we were defined in (null for toplevel types).
DefaultIndexerName (inherited from TypeInfo)  
FrameworkTypeName (inherited from TypeInfo) Return full qualified type name with namespaces (.-separated) and nesting types (+-separated).
FullName (inherited from TypeInfo) Return full qualified type name with namespaces and nesting types, all .-separated.
GlobalEnv  
HasBeenUsed  
IsAbstract  
IsAlias  
IsDelegate  
IsEnum (inherited from TypeInfo)  
IsExternallyAccessible  
IsFinalized  
IsInterface  
IsInternal  
IsModule  
IsPrivate  
IsProtected  
IsPublic  
IsSealed  
IsStatic (inherited from TypeInfo) Types are always static
IsStruct  
IsValueType  
Location  
MemberType  
Name Return name without any dots.
NamespaceNode (inherited from TypeInfo)  
OverloadName (inherited from TypeInfo)  
ParsedDeclaration  
ParsedName  
UnderlyingType  

Public Instance Methods

AddImplementedInterface  
CanAccess  
CompareTo (inherited from TypeInfo)  
Compile Builds this type
Define Adds a definition to this type
DefineAndReturn Adds a definition and returns the new NemerleMember, if available
DefineNestedType  
DisableImplicitConstructor  
Equals (inherited from TypeInfo) Overloaded. Compare types for equality.
FindAttribute  
GetConstantObject  
GetConstructors Overloaded. Searches for the constructors defined for the current TypeBuilder, using the specified BindingFlags.
GetDirectMembers Return list of all members defined in this very type.
GetDirectSuperTypes Return list of types that we directly subtype.
GetEvents Overloaded.  
GetFields Overloaded.  
GetFreshType (inherited from TypeInfo)  
GetHandle (inherited from TypeInfo)  
GetHashCode (inherited from Object)  
GetId (inherited from TypeInfo)  
GetKind (inherited from TypeInfo)  
GetMembers Overloaded. Searches for the members defined for the current TypeInfo, using the specified binding constraints.
GetMemType (inherited from TypeInfo) If this type was defined as [class Foo ('a, 'b) { ... }] then return type expression [Foo ('a, 'b)].
GetMethods Overloaded. Searches for the methods defined for the current TypeInfo, using the specified binding constraints.
GetModifiers  
GetNestedTypes Overloaded. Searches for the types defined for the current TypeInfo, using the specified BindingFlags.
GetParsedMembers  
GetProperties Overloaded.  
GetSuperTypes  
GetSystemType (inherited from TypeInfo)  
GetTydecl  
GetType (inherited from Object)  
GetTypeBuilder  
GetVariantOptionParent  
GetVariantOptions  
HasAttribute  
InterfacesToImplement Return interfaces [this] needs to implement (that is it says it will implement them, but they are not implemented in base class).
LookupMember (inherited from TypeInfo) Look for specified member.
LookupMemberImpl  
MarkWithSpecialName Marks this with the SpecialName attribute, the attribute will be propagated to members and contained types at a later stage.
SuperClass Return type we extend if any.
SuperType Return list of type parameters under which we subtype given type.
ToString (inherited from TypeInfo)  

Protected Instance Fields

default_indexer (inherited from TypeInfo)  
fullname (inherited from TypeInfo)  
namespace_nd (inherited from TypeInfo)  
self_type (inherited from TypeInfo)  
special_members (inherited from TypeInfo)  
system_type (inherited from TypeInfo)  

Protected Instance Methods

AddBuiltin (inherited from TypeInfo) Overloaded.  
AddConversion (inherited from TypeInfo) Overloaded.  
Finalize (inherited from Object)  
FixupCompare (inherited from TypeInfo)  
ForceIntType (inherited from TypeInfo)  
InitBuiltinMembers (inherited from TypeInfo)  
MakeSingleParm (inherited from TypeInfo)  
MemberwiseClone (inherited from Object)  

Protected Internal Instance Fields

parent_type  
phase Marker for [TypeBuilder.Iter].
typarms (inherited from TypeInfo)  

See Also

TypeBuilder Class | Nemerle.Compiler Namespace