Blackmire.CppHeaderWalker.VisitConstructorDeclaration C# (CSharp) Method

VisitConstructorDeclaration() public method

public VisitConstructorDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.ConstructorDeclarationSyntax node ) : void
node Microsoft.CodeAnalysis.CSharp.Syntax.ConstructorDeclarationSyntax
return void
        public override void VisitConstructorDeclaration(ConstructorDeclarationSyntax node)
        {
            var z = model.GetDeclaredSymbol(node);
              var builder = tcb.GetBuilderFor(z.DeclaredAccessibility);
              builder.AppendWithIndent(node.Identifier.Text).Append("(");
              var pars = node.ParameterList.Parameters.ToList();
              for (int i = 0; i < pars.Count; ++i)
              {
            var p = pars[i];
            var c = model.GetDeclaredSymbol(p);
            builder.Append(ArgumentTypeFor(c.Type)).Append(" ").Append(p.Identifier.ToString());
            if (i + 1 < pars.Count)
              builder.Append(", ");
              }
              builder.AppendLine(");");
              base.VisitConstructorDeclaration(node);
        }