TypeRef Class |
Namespace: Nova.CodeDOM
public class TypeRef : TypeRefBase
The TypeRef type exposes the following members.
Name | Description | |
---|---|---|
TypeRef(Object) |
Create a TypeRef from a constant value.
| |
TypeRef(Type, Expression) |
Create a TypeRef from a Type.
If the Type might be a generic parameter (requiring an OpenTypeParameterRef/TypeParameterRef)
or expression tree (requiring an ExpressionTreeRef) or an array of one of those, use one of the TypeRef.Create() factory
methods instead.
| |
TypeRef(Type, Int32) |
Create a TypeRef from a Type.
If the Type might be a generic parameter (requiring an OpenTypeParameterRef/TypeParameterRef)
or expression tree (requiring an ExpressionTreeRef) or an array of one of those, use one of the TypeRef.Create() factory
methods instead.
| |
TypeRef(ITypeDecl, Expression) |
Create a TypeRef from an ITypeDecl.
| |
TypeRef(ITypeDecl, Int32) |
Create a TypeRef from an ITypeDecl.
| |
TypeRef(Parser, CodeObject) |
Default parsing constructor - does nothing except forward to base class.
| |
TypeRef(TypeDefinition, Expression) |
Create a TypeRef from a TypeDefinition.
To create a TypeRef from a GenericParameter, use one of the TypeRef.Create() factory methods,
so it can create the appropriate OpenTypeParameterRef, or use a constructor of OpenTypeParameterRef.
| |
TypeRef(TypeDefinition, Int32) |
Create a TypeRef from a TypeDefinition.
To create a TypeRef from a GenericParameter, use one of the TypeRef.Create() factory methods,
so it can create the appropriate OpenTypeParameterRef, or use a constructor of OpenTypeParameterRef.
| |
TypeRef(TypeRef, Object) |
Construct a TypeRef from the specified type and constant value.
| |
TypeRef(Type, Boolean, Expression) |
Create a TypeRef from a Type.
If the Type might be a generic parameter (requiring an OpenTypeParameterRef/TypeParameterRef)
or expression tree (requiring an ExpressionTreeRef) or an array of one of those, use one of the TypeRef.Create() factory
methods instead.
| |
TypeRef(Type, Boolean, Int32) |
Create a TypeRef from a Type.
If the Type might be a generic parameter (requiring an OpenTypeParameterRef/TypeParameterRef)
or expression tree (requiring an ExpressionTreeRef) or an array of one of those, use one of the TypeRef.Create() factory
methods instead.
| |
TypeRef(Type, ListInt32, Int32) |
Create a TypeRef from a Type.
If the Type might be a generic parameter (requiring an OpenTypeParameterRef/TypeParameterRef)
or expression tree (requiring an ExpressionTreeRef) or an array of one of those, use one of the TypeRef.Create() factory
methods instead.
| |
TypeRef(GenericParameter, Boolean, Int32) |
Create a TypeRef from a GenericParameter.
| |
TypeRef(ITypeDecl, Boolean, Expression) |
Create a TypeRef from an ITypeDecl.
| |
TypeRef(ITypeDecl, Boolean, Int32) |
Create a TypeRef from an ITypeDecl.
| |
TypeRef(ITypeDecl, ListInt32, Int32) |
Create a TypeRef from an ITypeDecl.
| |
TypeRef(TypeDefinition, Boolean, Expression) |
Create a TypeRef from a TypeDefinition.
To create a TypeRef from a GenericParameter, use one of the TypeRef.Create() factory methods,
so it can create the appropriate OpenTypeParameterRef, or use a constructor of OpenTypeParameterRef.
| |
TypeRef(TypeDefinition, Boolean, Int32) |
Create a TypeRef from a TypeDefinition.
To create a TypeRef from a GenericParameter, use one of the TypeRef.Create() factory methods,
so it can create the appropriate OpenTypeParameterRef, or use a constructor of OpenTypeParameterRef.
| |
TypeRef(TypeDefinition, ListInt32, Int32) |
Create a TypeRef from a TypeDefinition.
To create a TypeRef from a GenericParameter, use one of the TypeRef.Create() factory methods,
so it can create the appropriate OpenTypeParameterRef, or use a constructor of OpenTypeParameterRef.
| |
TypeRef(Type, ChildListExpression, ListInt32, Int32) |
Create a TypeRef from a Type.
If the Type might be a generic parameter (requiring an OpenTypeParameterRef/TypeParameterRef)
or expression tree (requiring an ExpressionTreeRef) or an array of one of those, use one of the TypeRef.Create() factory
methods instead.
| |
TypeRef(GenericParameter, Boolean, ListInt32, Int32) |
Create a TypeRef from a GenericParameter.
| |
TypeRef(ITypeDecl, ChildListExpression, ListInt32, Int32) |
Create a TypeRef from an ITypeDecl.
| |
TypeRef(TypeDefinition, ChildListExpression, ListInt32, Int32) |
Create a TypeRef from a TypeDefinition.
To create a TypeRef from a GenericParameter, use one of the TypeRef.Create() factory methods,
so it can create the appropriate OpenTypeParameterRef, or use a constructor of OpenTypeParameterRef.
| |
TypeRef(Type, Boolean, ChildListExpression, ListInt32, Int32) |
Create a TypeRef from a Type.
If the Type might be a generic parameter (requiring an OpenTypeParameterRef/TypeParameterRef)
or expression tree (requiring an ExpressionTreeRef) or an array of one of those, use one of the TypeRef.Create() factory
methods instead.
| |
TypeRef(ITypeDecl, Boolean, ChildListExpression, ListInt32, Int32) |
Create a TypeRef from an ITypeDecl.
| |
TypeRef(Parser, CodeObject, Boolean, Boolean, ParseFlags) |
Construct a reference to a built-in type, nullable or pointer built-in type, or non-built-in nullable type.
| |
TypeRef(TypeDefinition, Boolean, ChildListExpression, ListInt32, Int32) |
Create a TypeRef from a TypeDefinition.
To create a TypeRef from a GenericParameter, use one of the TypeRef.Create() factory methods,
so it can create the appropriate OpenTypeParameterRef, or use a constructor of OpenTypeParameterRef.
|
Name | Description | |
---|---|---|
_AsString |
This property is just to make debugging easier.
(Inherited from CodeObject.) | |
Annotations |
Annotations (comments, attributes, directives, messages) associated with the current code object.
(Inherited from CodeObject.) | |
ArrayRanks |
The array ranks of the type reference (if any).
(Inherited from TypeRefBase.) | |
Category |
The descriptive category of the SymbolicRef.
(Overrides SymbolicRefCategory.) | |
ColumnNumber |
The column number associated with the CodeObject (if any, 0 if none).
(Inherited from CodeObject.) | |
Comment |
The comment for the code object (if any).
(Inherited from CodeObject.) | |
DocComment |
The documentation comment for the code object (if any).
(Inherited from CodeObject.) | |
DontUseKeyword |
True if the referenced type should display as a type name instead of a keyword if it's a primitive type.
(Inherited from TypeRefBase.) | |
EOLComment |
The End-Of-Line comment for the code object (if any).
(Inherited from CodeObject.) | |
HasAnnotations |
True if the code object has any annotations.
(Inherited from CodeObject.) | |
HasArrayRanks |
True if the type reference has any array ranks.
(Inherited from TypeRefBase.) | |
HasAttributes |
True if the code object has any attributes.
(Inherited from CodeObject.) | |
HasComments |
True if the code object has any comments of any kind.
(Inherited from CodeObject.) | |
HasCompilerDirectives |
True if the code object has any compiler directive annotations.
(Inherited from CodeObject.) | |
HasDocComments |
True if the code object has any documentation comments.
(Inherited from CodeObject.) | |
HasEOLComments |
True if the code object has any EOL comments.
(Inherited from CodeObject.) | |
HasEOLOrPostAnnotations |
True if the code object has any EOL or Postfix annotations.
(Inherited from CodeObject.) | |
HasErrors |
True if the code object has any error messages.
(Inherited from CodeObject.) | |
HasFirstOnLineAnnotations |
True if the code object has any annotations on separate lines.
(Inherited from CodeObject.) | |
HasInfixComments |
True if the code object has any Infix comments.
(Inherited from CodeObject.) | |
HasMessages |
True if the code object has any generated messages.
(Inherited from CodeObject.) | |
HasNoIndentation |
Determines if the code object has no indentation.
(Inherited from CodeObject.) | |
HasNonEOLComments |
True if the code object has any regular (non-doc) preceding (non-EOL, non-Infix, non-Postfix) comments.
(Inherited from CodeObject.) | |
HasParens |
True if the expression is surrounded by parens.
(Inherited from Expression.) | |
HasParensDefault |
True if the expression should have parens by default.
(Inherited from Expression.) | |
HasPostAnnotations |
True if the code object has any postfix annotations.
(Inherited from CodeObject.) | |
HasTerminator |
Determines if the code object has a terminator character.
(Inherited from CodeObject.) | |
HasTypeArguments |
True if there are any type arguments.
(Inherited from TypeRefBase.) | |
HiddenRef |
Any hidden reference to another CodeObject.
(Inherited from CodeObject.) | |
InfixComment |
The infix comment for the code object (if any).
(Inherited from CodeObject.) | |
IsAbstract |
True if the referenced type is abstract.
| |
IsArray |
True if the type reference is an array.
(Inherited from TypeRefBase.) | |
IsBitFlagsEnum |
True if the referenced type is a bit-flags enum.
| |
IsBuiltInType |
True if the referenced type is a built-in type (has a keyword). The built-in types are:
object, void, sbyte, byte, short, ushort, int, uint, long, ulong, char, bool, string, float, double, decimal
(Overrides TypeRefBaseIsBuiltInType.) | |
IsBuiltInTypeOrArray |
True if the referenced type is a built-in type or an array of a built-in type.
| |
IsClass |
True if the referenced type is a class.
| |
IsConst |
True if the referenced type has a constant value.
(Overrides ExpressionIsConst.) | |
IsDelegateType |
True if the referenced type is a delegate type.
(Overrides TypeRefBaseIsDelegateType.) | |
IsDocCodeReference |
Returns true if the TypeRefBase is a DocCodeRefBase reference to a code object, otherwise false.
(Inherited from TypeRefBase.) | |
IsEndFirstOnLine |
True if the closing paren or bracket is on a new line.
(Inherited from Expression.) | |
IsEnum |
True if the referenced type is an enum.
| |
IsFirstOnLine |
Determines if the code object appears as the first item on a line.
(Inherited from CodeObject.) | |
IsFirstOnLineDefault |
True if the code object defaults to starting on a new line.
(Inherited from Expression.) | |
IsFixedBufferType |
True if the referenced type is a fixed buffer type.
(Overrides TypeRefBaseIsFixedBufferType.) | |
IsGenerated |
Determines if the code object is generated.
(Inherited from CodeObject.) | |
IsGenericParameter |
True if the referenced type is a generic type parameter.
| |
IsGenericType |
True if the type is a generic type (meaning that either it or an enclosing type has type arguments).
| |
IsGroupingSet |
Determines if the 'grouping' (has parens or braces) status has been set.
(Inherited from CodeObject.) | |
IsInterface |
True if the referenced type is an interface.
(Overrides TypeRefBaseIsInterface.) | |
IsInternal |
True if the referenced type has internal access.
(Overrides TypeRefBaseIsInternal.) | |
IsNested |
True if the referenced type is a nested type.
| |
IsNewLinesSet |
Determines if the newline count has been set on the code object.
(Inherited from CodeObject.) | |
IsNullableType |
True if the referenced type is a nullable type.
(Overrides TypeRefBaseIsNullableType.) | |
IsOrContainsNestedGenericType |
True if the referenced type is a nested generic type, or if it (recursively) contains a nested generic type as a type argument.
| |
IsPartial |
True if the referenced type is a partial type.
| |
IsPointer |
True if the type reference is a pointer.
(Inherited from TypeRefBase.) | |
IsPossibleDelegateType |
True if the expression evaluates to a delegate, unresolved, or dynamic type or a TypeParameterRef.
(Inherited from Expression.) | |
IsPrimitive |
True if the type is Primitive. The Primitive Types are:
sbyte, byte, short, ushort, int, uint, long, ulong, IntPtr, UIntPtr, char, bool, float, double.
The following are NOT primitive types: object, void, string, decimal
(Overrides TypeRefBaseIsPrimitive.) | |
IsPrivate |
True if the referenced type has private access.
(Overrides TypeRefBaseIsPrivate.) | |
IsProtected |
True if the referenced type has protected access.
(Overrides TypeRefBaseIsProtected.) | |
IsPublic |
True if the referenced type has public access.
(Overrides TypeRefBaseIsPublic.) | |
IsRenderable |
True if the CodeObject is renderable.
(Inherited from CodeObject.) | |
IsSingleLine |
Determines if the code object only requires a single line for display.
(Inherited from TypeRefBase.) | |
IsSingleLineDefault |
True if the code object only requires a single line for display by default.
(Inherited from CodeObject.) | |
IsStatic |
True if the referenced type is static.
(Overrides TypeRefBaseIsStatic.) | |
IsUserClass |
True if the referenced type is a user-defined class (excludes 'object' and 'string').
| |
IsUserStruct |
True if the referenced type is a user-defined struct (excludes primitive types including 'void' and 'decimal', and enums).
| |
IsValueType |
True if the referenced type is a value type.
| |
LineNumber |
The line number associated with the CodeObject (if any, 0 if none).
(Inherited from CodeObject.) | |
Name |
The name of the TypeRef.
(Overrides SymbolicRefName.) | |
NamespaceName |
The associated Namespace name.
| |
NewLines |
The number of newlines preceding the object (0 to N).
(Inherited from CodeObject.) | |
Parent |
The parent CodeObject.
(Inherited from TypeRefBase.) | |
PointerCount |
The number of pointer dereferences.
(Inherited from TypeRefBase.) | |
PostfixComment |
The postfix comment for the code object (if any).
(Inherited from CodeObject.) | |
Reference |
The code object to which the SymbolicRef refers.
(Inherited from SymbolicRef.) | |
TypeArgumentCount |
The number of type arguments.
(Inherited from TypeRefBase.) | |
TypeArguments |
The type argument Expressions of the reference (if any).
(Inherited from TypeRefBase.) |
Name | Description | |
---|---|---|
Accept |
Accept the specified visitor object for the current code object and it's children.
(Inherited from TypeRefBase.) | |
AcceptAnnotations(IVisitor) |
Accept the specified visitor object for all regular (non-EOL, non-Infix, non-Postfix) annotations (comments, attributes, compiler directives).
(Inherited from CodeObject.) | |
AcceptAnnotations(IVisitor, AnnotationFlags) |
Accept the specified visitor object for all specified Infix or Postfix annotations (comments, compiler directives).
(Inherited from CodeObject.) | |
AcceptEOLComments |
Accept the specified visitor object for all EOL comments.
(Inherited from CodeObject.) | |
AcceptInfixComments |
Accept the specified visitor object for all Infix comments.
(Inherited from CodeObject.) | |
AcceptInfixEOLComments |
Accept the specified visitor object for all Infix EOL comments.
(Inherited from CodeObject.) | |
AssociateCommentWhenParsing |
Determine if the specified comment should be associated with the current code object during parsing.
(Inherited from Expression.) | |
AsString |
Render the entire code object as a string, using LFs for newlines.
(Inherited from CodeObject.) | |
AsText |
Convert the code object to text with a trailing newline, and using CR/LF pairs for newlines (file format).
(Inherited from CodeObject.) | |
AsText(CodeWriter, CodeObjectRenderFlags) | (Inherited from Expression.) | |
AsText(CodeObjectRenderFlags, Boolean, StackCodeWriterAlignmentState) |
Convert the code object to text using the specified flags and format (file or string).
(Inherited from CodeObject.) | |
AsTextAfter | (Inherited from CodeObject.) | |
AsTextAnnotations(CodeWriter, CodeObjectRenderFlags) |
Render all regular (non-EOL, non-Infix, non-Postfix, non-Message) annotations (comments, attributes, compiler directives).
(Inherited from CodeObject.) | |
AsTextAnnotations(CodeWriter, AnnotationFlags, CodeObjectRenderFlags) |
Render all specified Infix or Postfix annotations (comments, compiler directives).
(Inherited from CodeObject.) | |
AsTextArrayRanks |
Render array rank brackets (if any) as text.
(Inherited from TypeRefBase.) | |
AsTextBefore | (Inherited from CodeObject.) | |
AsTextEOLComments |
Render all EOL comments.
(Inherited from CodeObject.) | |
AsTextEvaluatedType | (Inherited from CodeObject.) | |
AsTextExpression | (Overrides SymbolicRefAsTextExpression(CodeWriter, CodeObjectRenderFlags).) | |
AsTextInfixComments |
Render all Infix comments with the specified mask.
(Inherited from CodeObject.) | |
AsTextInfixEOLComments |
Render all Infix EOL comments.
(Inherited from CodeObject.) | |
AsTextLeftMostAnnotations |
Render all regular annotations on the current object, or the left most binary operator.
(Inherited from CodeObject.) | |
AsTextLength |
Determine the length of the code object if converted to a string using the specified flags.
(Inherited from CodeObject.) | |
AsTextPointers |
Render pointers (if any) as text.
(Inherited from TypeRefBase.) | |
AsTextType | ||
AsTextTypeArguments |
Render type arguments (if any) as text.
(Inherited from TypeRefBase.) | |
AttachAnnotation(Annotation, Boolean) |
Attach an Annotation (Comment, DocComment, Attribute,
CompilerDirective, or Message) to the CodeObject.
(Inherited from CodeObject.) | |
AttachAnnotation(Annotation, AnnotationFlags, Boolean) |
Attach an Annotation to the CodeObject at the specified position.
(Inherited from CodeObject.) | |
AttachComment |
Create a comment object and attach it to the code object.
(Inherited from CodeObject.) | |
AttachEOLComment |
Create an EOL comment object and attach it to the code object.
(Inherited from CodeObject.) | |
AttachMessage |
Create a message and attach it to the code object.
(Inherited from CodeObject.) | |
BoxingConversionExists |
Determine if a boxing conversion exists to the specified type. [C# 4.0 section 6.1.7]
| |
CalculateMetrics |
Calculate metrics for this code object and its children.
(Inherited from CodeObject.) | |
ChangeTypeOfConstant(Object, TypeReference) |
Change the type of the specified constant to the specified type if possible.
| |
ChangeTypeOfConstant(Object, TypeRefBase) |
Change the type of the specified constant to the specified type if possible.
| |
CheckForAlignment |
Check for alignment of any EOL comments.
(Inherited from CodeObject.) | |
ClearStaticReferences |
Clear any static references to types.
| |
Clone |
Deep-clone the code object.
(Inherited from TypeRefBase.) | |
CloneField(Object, Object) |
Clone a field of a code object, including setting the parent.
(Inherited from CodeObject.) | |
CloneFieldT(T, T) |
Clone a field of a code object, including setting the parent.
(Inherited from CodeObject.) | |
ConvertOpenTypeParameters |
Convert all OpenTypeParameterRef type arguments to TypeParameterRefs.
(Inherited from TypeRefBase.) | |
CopyFormatting |
Copy formatting from another code object.
(Inherited from CodeObject.) | |
Create(Type, Expression) |
Construct a TypeRef from a Type.
Use this factory method if the Type might be a generic parameter (requiring an OpenTypeParameterRef/TypeParameterRef) or
expression tree (requiring an ExpressionTreeRef) or an array of one of those, otherwise you may use a 'new TypeRef()' constructor for
efficiency.
| |
Create(Type, Int32) |
Construct a TypeRef from a Type.
Use this factory method if the Type might be a generic parameter (requiring an OpenTypeParameterRef/TypeParameterRef) or
expression tree (requiring an ExpressionTreeRef) or an array of one of those, otherwise you may use a 'new TypeRef()' constructor for
efficiency.
| |
Create(GenericParameter, Int32) | ||
Create(TypeReference, Expression) |
Construct a TypeRef from a TypeReference.
This factory method handles TypeDefinitions, GenericParameters (returning an OpenTypeParameterRef),
expression trees (returning an ExpressionTreeRef), TypeReferences (resolving them to a TypeDefinition),
or arrays of any of those. For a known TypeDefinition, you may use a 'new TypeRef()' constructor for efficiency.
| |
Create(TypeReference, Int32) |
Construct a TypeRef from a TypeReference.
This factory method handles TypeDefinitions, GenericParameters (returning an OpenTypeParameterRef),
expression trees (returning an ExpressionTreeRef), TypeReferences (resolving them to a TypeDefinition),
or arrays of any of those. For a known TypeDefinition, you may use a 'new TypeRef()' constructor for efficiency.
| |
Create(Type, Boolean, Expression) |
Construct a TypeRef from a Type.
Use this factory method if the Type might be a generic parameter (requiring an OpenTypeParameterRef/TypeParameterRef) or
expression tree (requiring an ExpressionTreeRef) or an array of one of those, otherwise you may use a 'new TypeRef()' constructor for
efficiency.
| |
Create(Type, Boolean, Int32) |
Construct a TypeRef from a Type.
Use this factory method if the Type might be a generic parameter (requiring an OpenTypeParameterRef/TypeParameterRef) or
expression tree (requiring an ExpressionTreeRef) or an array of one of those, otherwise you may use a 'new TypeRef()' constructor for
efficiency.
| |
Create(GenericParameter, Boolean, Int32) | ||
Create(GenericParameter, ListInt32, Int32) | ||
Create(TypeReference, Boolean, Expression) |
Construct a TypeRef from a TypeReference.
This factory method handles TypeDefinitions, GenericParameters (returning an OpenTypeParameterRef),
expression trees (returning an ExpressionTreeRef), TypeReferences (resolving them to a TypeDefinition),
or arrays of any of those. For a known TypeDefinition, you may use a 'new TypeRef()' constructor for efficiency.
| |
Create(TypeReference, Boolean, Int32) |
Construct a TypeRef from a TypeReference.
This factory method handles TypeDefinitions, GenericParameters (returning an OpenTypeParameterRef),
expression trees (returning an ExpressionTreeRef), TypeReferences (resolving them to a TypeDefinition),
or arrays of any of those. For a known TypeDefinition, you may use a 'new TypeRef()' constructor for efficiency.
| |
Create(Type, ChildListExpression, ListInt32, Int32) |
Construct a TypeRef from a Type.
Use this factory method if the Type might be a generic parameter (requiring an OpenTypeParameterRef/TypeParameterRef) or
expression tree (requiring an ExpressionTreeRef) or an array of one of those, otherwise you may use a 'new TypeRef()' constructor for
efficiency.
| |
Create(GenericParameter, Boolean, ListInt32, Int32) | ||
Create(TypeReference, ChildListExpression, ListInt32, Int32) |
Construct a TypeRef from a TypeReference.
This factory method handles TypeDefinitions, GenericParameters (returning an OpenTypeParameterRef),
expression trees (returning an ExpressionTreeRef), TypeReferences (resolving them to a TypeDefinition),
or arrays of any of those. For a known TypeDefinition, you may use a 'new TypeRef()' constructor for efficiency.
| |
Create(Type, Boolean, ChildListExpression, ListInt32, Int32, Boolean) |
Construct a TypeRef from a Type.
Use this factory method if the Type might be a generic parameter (requiring an OpenTypeParameterRef/TypeParameterRef) or
expression tree (requiring an ExpressionTreeRef) or an array of one of those, otherwise you may use a 'new TypeRef()' constructor for
efficiency.
| |
Create(TypeReference, Boolean, ChildListExpression, ListInt32, Int32, Boolean) |
Construct a TypeRef from a TypeReference.
This factory method handles TypeDefinitions, GenericParameters (returning an OpenTypeParameterRef),
expression trees (returning an ExpressionTreeRef), TypeReferences (resolving them to a TypeDefinition),
or arrays of any of those. For a known TypeDefinition, you may use a 'new TypeRef()' constructor for efficiency.
| |
CreateAnnotations |
Create the list of child Annotations, or return the existing one.
(Inherited from CodeObject.) | |
CreateArrayRanks |
Create the child list of array ranks, or return the existing one.
(Inherited from TypeRefBase.) | |
CreateNested(Type) |
Create a type expression for the specified Type, handling nested types.
| |
CreateNested(TypeDefinition) |
Create a type expression for the specified TypeDefinition, handling nested types.
| |
CreateNullable(Expression, Boolean) |
Create a TypeRef to a nullable version of the specified type expression.
| |
CreateNullable(Expression, ListInt32, Int32) |
Create a TypeRef to a nullable version of the specified type expression.
| |
CreateNullable(Expression, Boolean, ListInt32, Int32) |
Create a TypeRef to a nullable version of the specified type expression.
| |
CreateRef |
Create a reference to the CodeObject.
(Inherited from CodeObject.) | |
CreateTypeArguments |
Create the child list of type argument Expressions, or return the existing one.
(Inherited from TypeRefBase.) | |
CreateTypeRef | ||
DefaultFormat |
Default format the code object.
(Inherited from Expression.) | |
DefaultFormatField |
Default format the specified child field code object.
(Inherited from CodeObject.) | |
DefaultNewLines |
Determine a default of 1 or 2 newlines when adding items to a Block.
(Inherited from CodeObject.) | |
Dispose |
Dispose the CodeObject.
(Inherited from CodeObject.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
EvaluateType |
Evaluate the type of the Expression.
(Overrides ExpressionEvaluateType(Boolean).) | |
EvaluateTypeArgumentTypes |
Evaluate the types of any type arguments of the TypeRef by searching for matching type
arguments in the specified parent code object tree.
(Inherited from TypeRefBase.) | |
EvaluateTypeOrNamespace |
Evaluate the Expression to a type or namespace.
(Inherited from Expression.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
Find(Type, String, Boolean) |
Find a nested type in the specified Type with the specified name.
| |
Find(Alias, String, Boolean) |
Find a type in the specified type or namespace Alias with the specified name.
| |
Find(Namespace, String, Boolean) |
Find a type in the specified Namespace with the specified name.
| |
Find(SymbolicRef, String, Boolean) |
Find a type in the specified NamespaceRef or TypeRefBase with the specified name.
| |
Find(TypeDecl, String, Boolean) |
Find a nested type in the specified TypeDecl with the specified name.
| |
FindExtensionMethod |
Find all extension method objects with the given name on the referenced type object.
| |
FindNestedTypeArgument | (Inherited from TypeRefBase.) | |
FindParentT |
Find the parent object of the specified type.
(Inherited from CodeObject.) | |
FindParentMethod |
Find the parent method (or anonymous method or lambda) of the current code object.
(Inherited from CodeObject.) | |
FindParentMethodOrType |
Find the parent method (or anonymous method or lambda) or type of the current code object.
(Inherited from CodeObject.) | |
FindTypeArgument |
Find a type argument for the specified type parameter.
(Overrides ExpressionFindTypeArgument(TypeParameterRef, CodeObject, DictionaryObject, Object).) | |
FindTypeArgumentInBase |
Find a type argument in a base class for the specified type parameter.
| |
FindTypeArgumentInTypeArguments |
Find a type argument for the specified type parameter in the type arguments of the type.
(Inherited from TypeRefBase.) | |
FindTypeRef |
Find or create a TypeRef that represents the appropriate TypeDefinition/Type
in the specified Project that has the same FullName as the specified Type.
| |
FindUserDefinedImplicitConversion |
Find any user-defined implicit conversion operator to the specified type.
| |
FindUserDefinedImplicitConversions |
Find all user-defined implicit conversion operators from the current type to any other type.
| |
FindUserDefinedImplicitConversions(TypeRef, Boolean) |
Find all user-defined implicit conversion operators to the specified type.
| |
FirstPrefix |
Get the expression on the left of the left-most Dot operator.
(Inherited from Expression.) | |
FormatAsArgument |
Format an expression assigned as an argument to another code object (turns off any parentheses).
(Inherited from Expression.) | |
GetAllChildrenT |
Get an enumerator for all children objects of type T in
the CodeObject and in any child CodeObjects (recursively).
(Inherited from CodeObject.) | |
GetAttribute |
Returns the first attribute expression (Call or ConstructorRef) with the specified name on the CodeObject.
(Inherited from CodeObject.) | |
GetBaseType |
Get the base type of the referenced type.
| |
GetComment |
Get the comment that satisfies the specified predicate.
(Inherited from CodeObject.) | |
GetCommonType |
Find a common type (using implicit conversions) that can represent both specified types.
| |
GetConstantValue |
Get the value of any represented constant. For enums, an EnumConstant object will be
returned, which has both the Enum type and a constant value of its underlying type.
(Overrides TypeRefBaseGetConstantValue.) | |
GetConstructor |
Get the non-static constructor for the referenced type.
| |
GetConstructors(Boolean) |
Get all (non-static) constructors for the referenced type.
| |
GetConstructors(Object, Boolean) |
Get all (non-static) constructors for the specified code object.
| |
GetDeclaringType |
Get the declaring type.
(Overrides SymbolicRefGetDeclaringType.) | |
GetDelegateParameters |
Get the delegate parameters if the expression evaluates to a delegate type.
(Overrides TypeRefBaseGetDelegateParameters.) | |
GetDelegateParameterType |
Get the type (or null if none) of the delegate parameter with the specified index.
(Inherited from TypeRefBase.) | |
GetDelegateReturnType |
Get the delegate return type if the expression evaluates to a delegate type.
(Overrides TypeRefBaseGetDelegateReturnType.) | |
GetDescription |
Get a short text description of the CodeObject.
This is generally the shortest text representation that uniquely identifies objects, even if
they have the same name, for example: type or return type, name, type parameters, parameters.
(Inherited from CodeObject.) | |
GetDocSummary |
Returns the DocSummary documentation comment, or null if none exists.
(Inherited from SymbolicRef.) | |
GetElementType |
Get the element type of the type reference (if it's an array or pointer, otherwise null).
(Inherited from TypeRefBase.) | |
GetEquivalentType |
Get the equivalent Type for the specified TypeReference (only works for primitive and built-in .NET types).
| |
GetEvent |
Get the event with the specified name.
| |
GetField |
Get the field with the specified name.
| |
GetFullName |
Get the full name of the object, including the namespace name.
(Overrides TypeRefBaseGetFullName.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetIndentLevel |
Get the indent level of this object.
(Inherited from CodeObject.) | |
GetIndentSpaceCount |
Get the current indent in spaces.
(Inherited from CodeObject.) | |
GetIndexer |
Get the indexer with the specified parameter types.
| |
GetInferredType |
Determine the type of an inferred ('var') type.
(Inherited from CodeObject.) | |
GetInterfaces |
Get all interfaces directly implemented by the type.
| |
GetIsSameRefHashCode |
Calculate a hash code for the referenced object which is the same for all references where IsSameRef() is true.
(Overrides SymbolicRefGetIsSameRefHashCode.) | |
GetLocalTypeArgumentCount |
Get the number of specified type arguments.
| |
GetMethod(String, TypeRefBase) |
Get the method with the specified name and parameter types.
| |
GetMethod(String, BindingFlags, TypeRefBase) |
Get the method with the specified name, binding flags, and parameter types.
| |
GetMethods(String, Boolean) |
Get all methods with the specified name.
| |
GetMethods(String, Boolean, NamedObjectGroup) |
Get all methods with the specified name.
| |
GetNamespace |
Get the Namespace for this CodeObject.
(Inherited from CodeObject.) | |
GetNestedType |
Get the nested type with the specified name.
| |
GetProperty |
Get the property with the specified name.
| |
GetReferencedType |
Get the actual type reference, retrieving from any constant value if necessary.
(Overrides TypeRefBaseGetReferencedType.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetTypeArgumentVariance |
Get the variance state of the type argument with the specified index;
(Overrides TypeRefBaseGetTypeArgumentVariance(Int32).) | |
GetTypeCode |
Get the TypeCode of the referenced type.
| |
GetTypeParametersAsArguments |
Get the declared type parameters (if any) of the referenced type as type arguments.
| |
GetTypeRef |
Get a TypeRef for the type with the specified full name, with caching (generally used for System types).
(Inherited from CodeObject.) | |
GetTypeWithoutConstant |
Get a TypeRef for the actual type, excluding any constant values.
(Overrides TypeRefBaseGetTypeWithoutConstant.) | |
GetUnderlyingTypeOfEnum |
Get the the underlying type if this is an enum type (otherwise returns null).
| |
GetWorstMessageType |
Get the type of the worst attached message.
(Inherited from CodeObject.) | |
HasAnnotationT | (Inherited from CodeObject.) | |
HasAttribute |
Returns true if the attribute with the specified name exists on the object, otherwise false.
(Inherited from CodeObject.) | |
HasImplicitConversion |
Check if an implicit conversion will take place between the expression and its parent code object (Operator or VariableDecl).
Conversions to type 'object' are not included, since there is no actual data conversion. The 'from' and 'to' types are returned whether an
implicit conversion is available or not. Any applicable user-defined conversion method is returned.
(Inherited from Expression.) | |
HasSameArrayRanks |
Determine if this TypeRef has the same array ranks as the specified TypeRef.
| |
HasSameDelegateParameters | ||
HasSameTypeArguments |
Determine if this TypeRef has the same type arguments as the specified TypeRef.
| |
HasUnresolvedRef |
Returns true if the code object is an UnresolvedRef or has any UnresolvedRef children.
(Inherited from TypeRefBase.) | |
ImplicitIdentityConversionExists |
Determine if an implicit identity conversion exists to the specified type.
(Overrides TypeRefBaseImplicitIdentityConversionExists(TypeRefBase).) | |
ImplicitReferenceConversionExists |
Determine if an implicit reference conversion exists to the specified type.
(Overrides TypeRefBaseImplicitReferenceConversionExists(TypeRefBase, Boolean).) | |
InitializeTypeRefs |
Initialize static TypeRefs for standard types according to the types loaded in the
specified Project if UseMonoCecilLoads is true - otherwise,
or if null is passed, default to the standard mscorlib types.
| |
IsAssignableFrom |
True if the current type is assignable from the specified type.
| |
IsChildIndented |
Returns true if the specified child object is indented from the parent.
(Inherited from CodeObject.) | |
IsChildPrefix |
Returns true if the specified child object is prefixed to the current object.
(Inherited from CodeObject.) | |
IsEncompassedBy |
Determine if type A is "encompassed by" type B. [C# 4.0 section 6.4.3]
| |
IsEnumerableType |
Determine if the type reference is an enumerable type (is compatible with an array).
Includes: IEnumerableT, ICollectionT, IListT, IReadOnlyCollection{T}, IReadOnlyList{T}
(Overrides TypeRefBaseIsEnumerableType.) | |
IsEnumOrNullableEnum | ||
IsImplementationOf |
Determines if the current TypeRef implements the specified interface TypeRef.
| |
IsImplicitlyConvertibleFrom |
Determine if the reference is implicitly convertible *from* the specified reference.
(Inherited from TypeRefBase.) | |
IsImplicitlyConvertibleTo |
Determine if the TypeRef is implicitly convertible to the specified TypeRefBase.
(Overrides TypeRefBaseIsImplicitlyConvertibleTo(TypeRefBase, Boolean).) | |
IsSameGenericType |
Determine if the specified TypeRefBase refers to the same generic type, regardless of actual type arguments.
(Overrides TypeRefBaseIsSameGenericType(TypeRefBase).) | |
IsSameOrVarianceConvertibleTo |
Determine if the current reference refers to the same code object as the specified reference,
or is variance-convertible to it.
| |
IsSameRef |
Determine if the current reference refers to the same code object as the specified reference.
(Overrides SymbolicRefIsSameRef(SymbolicRef).) | |
IsSubclassOf |
Determines if the current TypeRef is a subclass of the specified TypeRef.
| |
IsVisibleTypeArgument | ||
MakeArrayRef |
Make an array reference from the current type reference.
(Inherited from TypeRefBase.) | |
MakeGenericRef |
Make a generic type reference from the current type reference.
(Inherited from TypeRefBase.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MoveAllComments |
Move all (regular or EOL) comments from the specified token to the current code object, converting any
EOL comments to regular comments (which will be rendered inline if necessary).
(Inherited from CodeObject.) | |
MoveAnnotations |
Move any annotations from the specified location to the specified destination location.
(Inherited from CodeObject.) | |
MoveComments(Token) |
Move any non-EOL comments from the specified token to the current code object.
(Inherited from CodeObject.) | |
MoveComments(Token, Boolean) |
Move any non-EOL comments from the specified token to the current code object.
(Inherited from CodeObject.) | |
MoveCommentsAsPost |
Move any non-EOL comments from the specified token to the current code object as Post comments.
(Inherited from CodeObject.) | |
MoveCommentsToLeftMost |
Move any comments from the specified Token to the left-most sub-expression.
(Inherited from Expression.) | |
MoveEOLAndPostAnnotations |
Move any EOL or Postfix annotations from the specified code object to the current code object.
(Inherited from CodeObject.) | |
MoveEOLComment(CodeObject) |
Move any EOL comment from the specified code object to the current code object.
(Inherited from CodeObject.) | |
MoveEOLComment(Token) |
Move any EOL comment from the specified token to the current code object.
(Inherited from CodeObject.) | |
MoveEOLComment(Token, Boolean, Boolean) |
Move any EOL comment from the specified token to the current code object.
(Inherited from CodeObject.) | |
MoveEOLCommentAsInfix |
Move any EOL comment from the specified token to the current code object as an Infix EOL comment.
(Inherited from CodeObject.) | |
MoveFormatting(CodeObject) |
Move formatting from the specified code object to the current object.
(Inherited from CodeObject.) | |
MoveFormatting(Token) |
Move formatting from the specified token to the current object.
(Inherited from CodeObject.) | |
MovePrefixAnnotationsAs |
Move any prefix annotations on the specified code object to the current code object as the specified type of annotation.
(Inherited from CodeObject.) | |
NotifyListedAnnotationAdded |
Propagate the listed annotation to the parent CodeUnit and above.
(Inherited from CodeObject.) | |
NotifyListedAnnotationRemoved |
Remove the listed annotation from the parent CodeUnit and above.
(Inherited from CodeObject.) | |
OccursIn |
Determine if the current type is the same as or occurs in the (potentially nested) type arguments of the specified type.
(Inherited from TypeRefBase.) | |
ParseAnnotations(Parser, CodeObject) |
Parse annotations - specifically, compiler directives around things such as TypeParameters or ParameterDecls.
(Inherited from CodeObject.) | |
ParseAnnotations(Parser, CodeObject, Boolean, Boolean) |
Parse any comments, attributes, compiler directives.
(Inherited from CodeObject.) | |
ParseArrayRanks |
Parse multiple array ranks.
(Inherited from TypeRefBase.) | |
ParseExpectedToken |
Parse the specified expected token, attaching a parse error to the current object if it doesn't exist.
(Inherited from CodeObject.) | |
ParseUnusedAnnotations |
Parse annotations from the Unused list.
(Inherited from CodeObject.) | |
RemoveAllAnnotationsT |
Remove all annotations of the specified type from this object.
(Inherited from CodeObject.) | |
RemoveAllAnnotationsWhereT |
Remove all annotations from this object where the specified predicate is true.
(Inherited from CodeObject.) | |
RemoveAllMessages |
Remove all messages from this object, or optionally only from the specified source.
(Inherited from CodeObject.) | |
RemoveAttribute |
Remove the attribute expression with the specified name.
(Inherited from CodeObject.) | |
ReplaceType |
Replace all occurrences of one type reference with another, including in (potentially nested) type arguments.
(Inherited from TypeRefBase.) | |
Resolve(ResolveFlags) |
Resolve all child symbolic references.
(Inherited from CodeObject.) | |
Resolve(ResolveCategory, ResolveFlags) |
Resolve all child symbolic references, using the specified ResolveCategory and ResolveFlags.
(Overrides TypeRefBaseResolve(ResolveCategory, ResolveFlags).) | |
ResolveAttributes |
Resolve any attached attributes.
(Inherited from CodeObject.) | |
ResolveDocComments |
Resolve any references in attached documentation comments.
(Inherited from CodeObject.) | |
ResolveGotoTargetUp |
Resolve child code objects that match the specified name are valid goto targets, moving up the tree until a complete match is found.
(Inherited from CodeObject.) | |
ResolveIndexerRef(Resolver) |
Resolve indexers.
(Overrides SymbolicRefResolveIndexerRef(Resolver).) | |
ResolveIndexerRef(Type, Resolver) |
Resolve indexers in the specified Type.
| |
ResolveIndexerRef(TypeReference, Resolver) |
Resolve indexers in the specified TypeReference.
| |
ResolveLocalDeclExprRef |
Resolve any LocalDeclExpr in the Expression or its children that match the specified name.
(Inherited from Expression.) | |
ResolveRef(String, Resolver) |
Resolve child code objects that match the specified name.
(Overrides ExpressionResolveRef(String, Resolver).) | |
ResolveRef(Type, String, Resolver) |
Resolve child code objects in the specified Type that match the specified name.
| |
ResolveRef(TypeRef, String, Resolver) |
Resolve child code objects in the specified TypeRef that match the specified name.
| |
ResolveRef(TypeReference, String, Resolver) |
Resolve child code objects in the specified TypeReference that match the specified name.
| |
ResolveRefInBaseInterfaces(Type, String, Resolver) |
Search for members with the specified name in all base interfaces of the specified Type, accumulating the results.
| |
ResolveRefInBaseInterfaces(TypeReference, String, Resolver) |
Search for members with the specified name in all base interfaces of the specified TypeReference, accumulating the results.
| |
ResolveRefUp |
Resolve child code objects that match the specified name, moving up the tree until a complete match is found.
(Inherited from CodeObject.) | |
ResolveRefUpSkipMethodBody |
Similar to ResolveRefUp(String, Resolver), but skips trying to resolve the symbol in the body or parameters of a
method (used for resolving parameter types).
(Inherited from CodeObject.) | |
SetField(Object, Object, Boolean) |
Set a field of a code object, including setting the parent, and optional formatting.
(Inherited from CodeObject.) | |
SetFieldT(ChildListT, ChildListT) |
Set a ChildList collection field of a code object, including setting the parent.
(Inherited from CodeObject.) | |
SetFieldT(T, T, Boolean) |
Set a field of a code object, including setting the parent, and optional formatting.
(Inherited from CodeObject.) | |
SetFormatFlag | (Inherited from CodeObject.) | |
SetLineCol(CodeObject) |
Set the line and column numbers to those in the specified CodeObject.
(Inherited from CodeObject.) | |
SetLineCol(Token) |
Set the line and column numbers to those in the specified token.
(Inherited from CodeObject.) | |
SetNewLines |
Special method to set the newline count without setting the NewLinesSet flag.
(Inherited from CodeObject.) | |
SetStartLineCol |
Set the starting line and column numbers to those in the specified token (used by
some code objects with prefixes such as modifiers).
(Inherited from CodeObject.) | |
SkipPrefixes |
Get the expression on the right of the right-most Lookup or Dot operator (bypass any '::' and '.' prefixes).
(Inherited from Expression.) | |
ToString |
Render the type of the code object and its description as a string.
(Inherited from CodeObject.) | |
UpdateAllDeclExpressions |
Recursively update the dictionary of names in the specified Block by either adding or removing
(as specified by the 2nd parameter) all appropriate nested INamedCodeObjects expressions in the
current CodeObject tree (specifically implemented for LocalDeclExpr expression objects).
(Inherited from CodeObject.) | |
UpdateLineCol |
Update the line and column numbers according to the current positions in the CodeWriter,
if the UpdateLineCol flag is set.
(Inherited from CodeObject.) | |
UserDefinedImplicitConversionExists |
Determine if a user-defined implicit conversion exists to the specified type. [C# 4.0 section 6.4.4]
|
Name | Description | |
---|---|---|
_annotations |
Any Annotations (Comments, DocComments, Attributes,
or Messages) associated with the CodeObject (null if none).
(Inherited from CodeObject.) | |
_arrayRanks |
Optional array ranks (for array types only).
(Inherited from TypeRefBase.) | |
_columnNumber |
The starting column number associated with the CodeObject if parsed from or written to text form.
(Inherited from CodeObject.) | |
_formatFlags |
Formatting flags - for line feeds, braces, etc.
(Inherited from CodeObject.) | |
_lineNumber |
The starting line number associated with the CodeObject if parsed from or written to text form.
(Inherited from CodeObject.) | |
_parent |
The parent CodeObject.
(Inherited from CodeObject.) | |
_reference | (Inherited from SymbolicRef.) | |
_typeArguments |
Optional type arguments (for generic types only).
(Inherited from TypeRefBase.) | |
_typeFlags |
Optional flags, including pointer count, const state, formatting.
(Inherited from TypeRefBase.) | |
ArrayRef | ||
AsyncCallbackRef | ||
BoolRef | ||
BuiltInTypeNames |
An array of built-in type names.
| |
BuiltInTypeObjects |
An array of Type objects for all built-in .NET types.
| |
ByteRef | ||
CharRef | ||
CommonTypeRefMap |
A map of common types for pairs of built-in or primitive types.
| |
DecimalRef | ||
DelegateRef | ||
Dictionary2Ref | ||
DoubleRef | ||
DynamicRef | ||
EnumRef | ||
FlagsAttributeRef | ||
FloatRef | ||
IAsyncResultRef | ||
ICloneableRef | ||
ICollection1Ref | ||
ICollectionRef | ||
IEnumerable1Ref | ||
IEnumerableRef | ||
IFormattableRef | ||
IGrouping2Ref | ||
IList1Ref | ||
IListRef | ||
IntRef | ||
IOrderedEnumerable1Ref | ||
IQueryable1Ref | ||
ISerializableRef | ||
KeywordToBuiltInTypeIndexMap |
A dictionary of built-in type keywords to a unique index value.
| |
LongRef | ||
MulticastDelegateRef | ||
Nullable1Ref | ||
NullRef | ||
NumberOfBuiltInTypes |
The total number of built-in .NET types.
| |
ObjectRef | ||
ParallelQuery1Ref | ||
PrimitiveTypeNames |
A hash set of primitive type names (the "System" namespace prefix is NOT included on the names).
| |
RuntimeArgumentHandleRef | ||
SByteRef | ||
ShortRef | ||
StringRef | ||
Task1Ref | ||
TaskRef | ||
TypedReferenceRef | ||
TypeNameToTypeCodeMap |
A map of type names to TypeCodes (the "System" namespace prefix is NOT included on the names).
| |
TypeNameToTypeMap |
A map of type names to built-in AND primitive .NET types.
| |
TypeTypeRef | ||
TypeUtilTRef | ||
UIntRef | ||
ULongRef | ||
UShortRef | ||
ValueTypeRef | ||
VoidRef |