Reko.Core.Output.CodeFormatter.VisitDeclaration C# (CSharp) Метод

VisitDeclaration() публичный Метод

public VisitDeclaration ( Declaration decl ) : void
decl Declaration
Результат void
		public void VisitDeclaration(Declaration decl)
		{
			writer.Indent();
            Debug.Assert(decl.Identifier.DataType != null, "The DataType property can't ever be null");

#if OLD
            TypeFormatter tf = new TypeFormatter(writer, true);
            tf.Write(decl.Identifier.DataType, decl.Identifier.Name);
#else
            TypeReferenceFormatter tf = new TypeReferenceFormatter(writer);
            tf.WriteDeclaration(decl.Identifier.DataType, decl.Identifier.Name);
#endif
            if (decl.Expression != null)
			{
				writer.Write(" = ");
				decl.Expression.Accept(this);
			}
			writer.Terminate();
		}

Same methods

CodeFormatter::VisitDeclaration ( AbsynDeclaration decl ) : void