/// <summary> /// Copy initializes a new instance of the <see cref="InterfaceDeclarationTranslationUnit"/> class. /// </summary> /// <param name="other"></param> /// <remarks> /// For testability. /// </remarks> public InterfaceDeclarationTranslationUnit(InterfaceDeclarationTranslationUnit other) : base(other) { this.Name = other.Name; this.Interfaces = other.Interfaces; this.signatures = other.signatures; this.injectedBefore = other.injectedBefore; }
/// <summary> /// Initializes a new instance of the <see cref="InterfaceASTWalker"/> class. /// </summary> /// <param name="node"></param> /// <param name="interfaceDeclaration"></param> /// <param name="semanticModel">The semantic model.</param> protected InterfaceASTWalker(CSharpSyntaxNode node, InterfaceDeclarationTranslationUnit interfaceDeclaration, SemanticModel semanticModel) : base(node, semanticModel) { var interfaceDeclarationSyntaxNode = node as InterfaceDeclarationSyntax; if (interfaceDeclarationSyntaxNode == null) { throw new ArgumentException( string.Format("Specified node is not of type {0}", typeof(InterfaceDeclarationSyntax).Name)); } if (interfaceDeclaration == null) { throw new ArgumentNullException(nameof(interfaceDeclaration)); } this.interfaceDeclaration = interfaceDeclaration; }
public static MockedInterfaceDeclarationTranslationUnit Create(InterfaceDeclarationTranslationUnit interfaceDeclarationTranslationUnit) { return new MockedInterfaceDeclarationTranslationUnit(interfaceDeclarationTranslationUnit); }
protected MockedInterfaceDeclarationTranslationUnit(InterfaceDeclarationTranslationUnit original) : base(original) { }
/// <summary> /// Copy initializes a new instance of the <see cref="InterfaceASTWalker"/> class. /// </summary> /// <param name="other"></param> /// <remarks> /// For testability. /// </remarks> public InterfaceASTWalker(InterfaceASTWalker other) : base(other) { this.interfaceDeclaration = other.interfaceDeclaration; }