C# Class ICSharpCode.NRefactory.CSharp.Refactoring.TypeSystemAstBuilder

Converts from type system to the C# AST.
Afficher le fichier Open project: icsharpcode/NRefactory Class Usage Examples

Méthodes publiques

Méthode Description
ConvertAttribute ( IAttribute attribute ) : Attribute
ConvertConstantValue ( IType type, object constantValue ) : Expression
ConvertConstantValue ( ResolveResult rr ) : Expression
ConvertEntity ( IEntity entity ) : EntityDeclaration
ConvertNamespace ( string namespaceName ) : AstType
ConvertParameter ( IParameter parameter ) : ParameterDeclaration
ConvertSymbol ( ISymbol symbol ) : AstNode
ConvertType ( FullTypeName fullTypeName ) : AstType
ConvertType ( IType type ) : AstType
ConvertVariable ( IVariable v ) : VariableDeclarationStatement
ModifierFromAccessibility ( Accessibility accessibility ) : Modifiers
TypeSystemAstBuilder ( ) : System

Creates a new TypeSystemAstBuilder.

TypeSystemAstBuilder ( CSharpResolver resolver ) : System

Creates a new TypeSystemAstBuilder.

Private Methods

Méthode Description
AddTypeArguments ( AstType result, ITypeDefinition typeDef, IList typeArguments, int startIndex, int endIndex ) : void

Adds type arguments to the result type.

ConvertAccessor ( IMethod accessor, Accessibility ownerAccessibility, bool addParamterAttribute ) : Accessor
ConvertConstructor ( IMethod ctor ) : ConstructorDeclaration
ConvertDelegate ( IMethod invokeMethod, Modifiers modifiers ) : DelegateDeclaration
ConvertDestructor ( IMethod dtor ) : DestructorDeclaration
ConvertEnumValue ( IType type, long val ) : Expression
ConvertEvent ( IEvent ev ) : EntityDeclaration
ConvertField ( IField field ) : FieldDeclaration
ConvertIndexer ( IProperty indexer ) : IndexerDeclaration
ConvertMethod ( IMethod method ) : MethodDeclaration
ConvertNamespaceDeclaration ( INamespace ns ) : NamespaceDeclaration
ConvertOperator ( IMethod op ) : EntityDeclaration
ConvertProperty ( IProperty property ) : PropertyDeclaration
ConvertTypeDefinition ( ITypeDefinition typeDefinition ) : EntityDeclaration
ConvertTypeHelper ( IType type ) : AstType
ConvertTypeHelper ( ITypeDefinition typeDef, IList typeArguments ) : AstType
ConvertTypeParameter ( ITypeParameter tp ) : TypeParameterDeclaration
ConvertTypeParameterConstraint ( ITypeParameter tp ) : Constraint
GenerateBodyBlock ( ) : BlockStatement
GetExplicitInterfaceType ( IMember member ) : AstType
GetMemberModifiers ( IMember member ) : Modifiers
InitProperties ( ) : void
IsFlagsEnum ( ITypeDefinition type ) : bool
IsObjectOrValueType ( IType type ) : bool
IsValidNamespace ( string firstNamespacePart ) : bool
NeedsAccessibility ( IMember member ) : bool
TypeMatches ( IType type, ITypeDefinition typeDef, IList typeArguments ) : bool

Gets whether 'type' is the same as 'typeDef' parameterized with the given type arguments.

Method Details

ConvertAttribute() public méthode

public ConvertAttribute ( IAttribute attribute ) : Attribute
attribute IAttribute
Résultat System.Attribute

ConvertConstantValue() public méthode

public ConvertConstantValue ( IType type, object constantValue ) : Expression
type IType
constantValue object
Résultat Expression

ConvertConstantValue() public méthode

public ConvertConstantValue ( ResolveResult rr ) : Expression
rr ResolveResult
Résultat Expression

ConvertEntity() public méthode

public ConvertEntity ( IEntity entity ) : EntityDeclaration
entity IEntity
Résultat EntityDeclaration

ConvertNamespace() public méthode

public ConvertNamespace ( string namespaceName ) : AstType
namespaceName string
Résultat AstType

ConvertParameter() public méthode

public ConvertParameter ( IParameter parameter ) : ParameterDeclaration
parameter IParameter
Résultat ParameterDeclaration

ConvertSymbol() public méthode

public ConvertSymbol ( ISymbol symbol ) : AstNode
symbol ISymbol
Résultat AstNode

ConvertType() public méthode

public ConvertType ( FullTypeName fullTypeName ) : AstType
fullTypeName FullTypeName
Résultat AstType

ConvertType() public méthode

public ConvertType ( IType type ) : AstType
type IType
Résultat AstType

ConvertVariable() public méthode

public ConvertVariable ( IVariable v ) : VariableDeclarationStatement
v IVariable
Résultat VariableDeclarationStatement

ModifierFromAccessibility() public static méthode

public static ModifierFromAccessibility ( Accessibility accessibility ) : Modifiers
accessibility Accessibility
Résultat Modifiers

TypeSystemAstBuilder() public méthode

Creates a new TypeSystemAstBuilder.
public TypeSystemAstBuilder ( ) : System
Résultat System

TypeSystemAstBuilder() public méthode

Creates a new TypeSystemAstBuilder.
public TypeSystemAstBuilder ( CSharpResolver resolver ) : System
resolver ICSharpCode.NRefactory.CSharp.Resolver.CSharpResolver /// A resolver initialized for the position where the type will be inserted. ///
Résultat System