/// <summary> /// Initializes a new instance of the <see cref="ConstructorASTWalker"/> class. /// </summary> /// <param name="node"></param> /// <param name="methodDeclaration"></param> /// <param name="semanticModel">The semantic model.</param> protected ConstructorASTWalker(CSharpSyntaxNode node, ConstructorDeclarationTranslationUnit constructorDeclaration, SemanticModel semanticModel) : base(node, semanticModel) { var constructorDeclarationSyntaxNode = node as ConstructorDeclarationSyntax; if (constructorDeclarationSyntaxNode == null) { throw new ArgumentException( string.Format("Specified node is not of type {0}", typeof(ConstructorDeclarationSyntax).Name)); } if (constructorDeclaration == null) { throw new ArgumentNullException(nameof(constructorDeclaration)); } this.constructorDeclaration = constructorDeclaration; }
/// <summary> /// Copy initializes a new instance of the <see cref="ConstructorDeclarationTranslationUnit"/> class. /// </summary> /// <param name="other"></param> /// <remarks> /// For testability. /// </remarks> public ConstructorDeclarationTranslationUnit(ConstructorDeclarationTranslationUnit other) : base(other) { this.initializers = other.initializers; }
/// <summary> /// Copy initializes a new instance of the <see cref="ConstructorASTWalker"/> class. /// </summary> /// <param name="other"></param> /// <remarks> /// For testability. /// </remarks> public ConstructorASTWalker(ConstructorASTWalker other) : base(other) { this.constructorDeclaration = other.constructorDeclaration; }
public static MockedConstructorDeclarationTranslationUnit Create(ConstructorDeclarationTranslationUnit constructorDeclarationTranslationUnit) { return new MockedConstructorDeclarationTranslationUnit(constructorDeclarationTranslationUnit); }
protected MockedConstructorDeclarationTranslationUnit(ConstructorDeclarationTranslationUnit original) : base(original) { }
/// <summary> /// Copy initializes a new instance of the <see cref="ConstructorDeclarationTranslationUnit"/> class. /// </summary> /// <param name="other"></param> /// <remarks> /// For testability. /// </remarks> public ConstructorDeclarationTranslationUnit(ConstructorDeclarationTranslationUnit other) : base(other) { this.initializers = other.initializers; }