/// <summary> /// Initializes a new instance of the <see cref="UnknownGenericDeclarationUse"/> class. /// </summary> /// <param name="syntaxNodeProvider">The declaration use syntax node provider.</param> /// <param name="declaration">The declaration in use.</param> /// <param name="genericParameters">The generic parameters.</param> public UnknownGenericDeclarationUse( ISyntaxNodeProvider <SimpleNameSyntax> syntaxNodeProvider, IDeclaration <SyntaxNode> declaration, IReadOnlyCollection <IDeclarationUse <SyntaxNode> > genericParameters) : base(syntaxNodeProvider, declaration, genericParameters) { }
public ReflectionArraySyntaxNodeProvider( int arrayCount, ISyntaxNodeProvider <SyntaxNode> typeSyntaxNodeProvider) { this.arrayCount = arrayCount; this.typeSyntaxNodeProvider = typeSyntaxNodeProvider; }
public ReflectionMethodSyntaxNodeProvider( MethodInfo method, ISyntaxNodeProvider <SyntaxNode> methodTypeNodeProvider) { this.method = method; this.methodTypeNodeProvider = methodTypeNodeProvider; }
public ReflectionPropertySyntaxNodeProvider( PropertyInfo property, ISyntaxNodeProvider <SyntaxNode> propertyTypeNodeProvider) { this.property = property; this.propertyTypeNodeProvider = propertyTypeNodeProvider; }
/// <summary> /// Initializes a new instance of the <see cref="MethodDeclaration"/> class. /// </summary> /// <param name="name">The member name.</param> /// <param name="returnType">The return type use.</param> /// <param name="syntaxNodeProvider">The property syntax provider.</param> public MethodDeclaration( string name, IDeclarationUse <SyntaxNode> returnType, ISyntaxNodeProvider <MethodDeclarationSyntax> syntaxNodeProvider) : base(name, syntaxNodeProvider) { this.ReturnType = returnType; }
/// <summary> /// Initializes a new instance of the <see cref="GenericDeclarationUse"/> class. /// </summary> /// <param name="syntaxNodeProvider">The declaration use syntax node provider.</param> /// <param name="declaration">The declaration in use.</param> /// <param name="genericParameters">The generic parameters.</param> public GenericDeclarationUse( ISyntaxNodeProvider <SimpleNameSyntax> syntaxNodeProvider, IDeclaration <SyntaxNode> declaration, IReadOnlyCollection <IDeclarationUse <SyntaxNode> > genericParameters) : base(syntaxNodeProvider, declaration) { this.GenericParameters = genericParameters; }
/// <summary> /// Initializes a new instance of the <see cref="EnumDeclaration"/> class. /// </summary> /// <param name="nameSpace">The enum declaration name space.</param> /// <param name="name">The declaration name.</param> /// <param name="syntaxNodeProvider">The declaration syntax node provider.</param> /// <param name="usingDirectives">The current using directive available for this enum.</param> /// <param name="location">The location of the declaration.</param> public EnumDeclaration( string nameSpace, string name, ISyntaxNodeProvider <EnumDeclarationSyntax> syntaxNodeProvider, IReadOnlyList <string> usingDirectives, string location) : base(nameSpace, name, syntaxNodeProvider, usingDirectives, location) { }
private static IArraySpecification CreateArraySpecification( int arrayCount, ISyntaxNodeProvider <SyntaxNode> syntaxNodeProvider) { return(arrayCount != 0 ? new ArraySpecification( arrayCount, new ReflectionArraySyntaxNodeProvider(arrayCount, syntaxNodeProvider)) : null); }
/// <summary> /// Initializes a new instance of the <see cref="UnknownAttributeUse"/> class. /// </summary> /// <param name="declaration">Declaration (unknown) of the attribute.</param> /// <param name="syntaxNodeProvider">Attribute syntax node provider.</param> public UnknownAttributeUse(IDeclaration <SyntaxNode> declaration, ISyntaxNodeProvider <AttributeSyntax> syntaxNodeProvider) { if (declaration == null) { throw new ArgumentNullException(nameof(declaration), $"{nameof(declaration)} must not be null."); } this.Name = declaration.Name; this.Declaration = declaration; this.SyntaxNodeProvider = syntaxNodeProvider; }
/// <summary> /// Initializes a new instance of the <see cref="AGenericDeclaration{TNode}"/> class. /// </summary> /// <param name="nameSpace">The class declaration name space.</param> /// <param name="name">The declaration name.</param> /// <param name="syntaxNodeProvider">The declaration syntax node provider.</param> /// <param name="usingDirectives">The current using directive available for this class.</param> /// <param name="location">The location of the declaration.</param> /// <param name="loader">The loader to use when deep loading the declaration.</param> protected AGenericDeclaration( string nameSpace, string name, ISyntaxNodeProvider <TNode> syntaxNodeProvider, IReadOnlyList <string> usingDirectives, string location, AGenericDeclarationLoader <TNode> loader) : base(nameSpace, name, syntaxNodeProvider, usingDirectives, location) { this.loader = loader; }
/// <summary> /// Initializes a new instance of the <see cref="PropertyDeclaration"/> class. /// </summary> /// <param name="name">The member name.</param> /// <param name="propertyType">The property type use.</param> /// <param name="syntaxNodeProvider">The property syntax provider.</param> /// <param name="hasGetter">Tells if the property has a getter.</param> /// <param name="hasSetter">Tells if the property has a setter.</param> public PropertyDeclaration( string name, IDeclarationUse <SyntaxNode> propertyType, ISyntaxNodeProvider <PropertyDeclarationSyntax> syntaxNodeProvider, bool hasGetter, bool hasSetter) : base(name, syntaxNodeProvider) { this.PropertyType = propertyType; this.HasGetter = hasGetter; this.HasSetter = hasSetter; }
/// <summary> /// Initializes a new instance of the <see cref="StructDeclaration"/> class. /// </summary> /// <param name="nameSpace">The structure declaration name space.</param> /// <param name="name">The structure name.</param> /// <param name="syntaxNodeProvider">The structure syntax node provider.</param> /// <param name="usingDirectives">The current using directive available for this structure.</param> /// <param name="location">The location of the declaration.</param> /// <param name="loader">The class description loader.</param> public StructDeclaration( string nameSpace, string name, ISyntaxNodeProvider <StructDeclarationSyntax> syntaxNodeProvider, IReadOnlyList <string> usingDirectives, string location, AGenericDeclarationLoader <StructDeclarationSyntax> loader) : base( nameSpace, name, syntaxNodeProvider, usingDirectives, location, loader) { }
/// <summary> /// Initializes a new instance of the <see cref="AMemberDeclaration{TNode}"/> class. /// </summary> /// <param name="name">The member name.</param> /// <param name="syntaxNodeProvider">The member syntax node provider.</param> protected AMemberDeclaration(string name, ISyntaxNodeProvider <TNode> syntaxNodeProvider) { this.Name = name; this.SyntaxNodeProvider = syntaxNodeProvider; }
/// <summary> /// Initializes a new instance of the <see cref="ADeclarationUse{TNode}"/> class. /// </summary> /// <param name="syntaxNodeProvider">The declaration use syntax node provider.</param> /// <param name="declaration">The declaration in use.</param> protected ADeclarationUse(ISyntaxNodeProvider <TNode> syntaxNodeProvider, IDeclaration <SyntaxNode> declaration) { this.SyntaxNodeProvider = syntaxNodeProvider; this.Declaration = declaration; }
/// <summary> /// Initializes a new instance of the <see cref="GenericParameterDeclarationUse"/> class. /// </summary> /// <param name="syntaxNodeProvider">The declaration use syntax node provider.</param> /// <param name="declaration">The declaration in use.</param> public GenericParameterDeclarationUse( ISyntaxNodeProvider <SimpleNameSyntax> syntaxNodeProvider, IDeclaration <SyntaxNode> declaration) : base(syntaxNodeProvider, declaration) { }
/// <summary> /// Initializes a new instance of the <see cref="ArraySpecification"/> class. /// </summary> /// <param name="arrayCount">Array count.</param> /// <param name="syntaxNodeProvider">Syntax node provider.</param> public ArraySpecification(int arrayCount, ISyntaxNodeProvider <ArrayTypeSyntax> syntaxNodeProvider) { this.ArrayCount = arrayCount; this.SyntaxNodeProvider = syntaxNodeProvider; }
/// <summary> /// Initializes a new instance of the <see cref="GenericParameterDeclaration"/> class. /// </summary> /// <param name="name">The declaration name.</param> /// <param name="syntaxNodeProvider">The declaration syntax node provider.</param> public GenericParameterDeclaration(string name, ISyntaxNodeProvider <TypeParameterSyntax> syntaxNodeProvider) : base(string.Empty, name, syntaxNodeProvider, Array.Empty <string>(), null) { }
/// <summary> /// Initializes a new instance of the <see cref="PredefinedDeclarationUse"/> class. /// </summary> /// <param name="syntaxNodeProvider">The predefined syntax node provider.</param> /// <param name="name">Predefined type name.</param> public PredefinedDeclarationUse(ISyntaxNodeProvider <PredefinedTypeSyntax> syntaxNodeProvider, string name) { this.SyntaxNodeProvider = syntaxNodeProvider; this.Name = name; }
/// <summary> /// Initializes a new instance of the <see cref="UnknownDeclarationUse"/> class. /// </summary> /// <param name="syntaxNodeProvider">The declaration use syntax node provider.</param> /// <param name="declaration">The declaration in use.</param> public UnknownDeclarationUse( ISyntaxNodeProvider <IdentifierNameSyntax> syntaxNodeProvider, IDeclaration <SyntaxNode> declaration) : base(syntaxNodeProvider, declaration) { }