ICSharpCode.NRefactory.CSharp.CSharpOutputVisitor.Semicolon C# (CSharp) Method

Semicolon() protected method

Marks the end of a statement
protected Semicolon ( ) : void
return void
		protected virtual void Semicolon()
		{
			Role role = containerStack.Peek().Role;
			// get the role of the current node
			if (!(role == ForStatement.InitializerRole || role == ForStatement.IteratorRole || role == UsingStatement.ResourceAcquisitionRole)) {
				WriteToken(Roles.Semicolon);
				NewLine();
			}
		}
		
CSharpOutputVisitor