ICSharpCode.NRefactory.CSharp.CSharpOutputVisitor.OptionalSemicolon C# (CSharp) Метод

OptionalSemicolon() защищенный Метод

Writes an optional semicolon, e.g. at the end of a type or namespace declaration.
protected OptionalSemicolon ( AstNode pos ) : void
pos AstNode
Результат void
		protected virtual void OptionalSemicolon(AstNode pos)
		{
			// Look if there's a semicolon after the current node, and insert it if it exists.
			while (pos != null && pos.NodeType == NodeType.Whitespace) {
				pos = pos.PrevSibling;
			}
			if (pos != null && pos.Role == Roles.Semicolon) {
				Semicolon();
			}
		}
		
CSharpOutputVisitor