# redef fun start_document do
# # save the location of the start of the document
# # for future use.
-# start_loc = new SAXLocatorImpl.with(locator)
+# start_loc = new SAXLocatorImpl.from(locator)
# end
# end
#
# Parameters:
#
# * `locator`: locator to copy.
- init with(locator: SAXLocator) do
+ init from(locator: SAXLocator) do
public_id = locator.public_id
system_id = locator.system_id
line_number = locator.line_number
# caused the error or warning.
# * `column_number`: column number of the end of the text that
# caused the error or warning.
- init with(message: String, public_id: nullable String,
+ init with_info(message: String, public_id: nullable String,
system_id: nullable String, line_number: Int, column_number: Int) do
init(message)
self.public_id = public_id
expected.document_locator = new SAXLocatorImpl
expected.start_document
expected.start_element("", "a", "a", new AttributesImpl)
- expected.fatal_error(new SAXParseException.with(
+ expected.fatal_error(new SAXParseException.with_info(
"The type in the closing tag (`b`) does not match the type " +
"in the opening tag (`a`).", null, null, 1, 8))
expected.end_document
closed = true
return
end
- addrin = new NativeSocketAddrIn.with(port, new NativeSocketAddressFamilies.af_inet)
+ addrin = new NativeSocketAddrIn.with_port(port, new NativeSocketAddressFamilies.af_inet)
address = addrin.address
# Bind it
return sai;
`}
- new with(port: Int, family: NativeSocketAddressFamilies) `{
+ new with_port(port: Int, family: NativeSocketAddressFamilies) `{
struct sockaddr_in *sai = NULL;
sai = malloc(sizeof(struct sockaddr_in));
sai->sin_family = family;