Lines Matching defs:new
175 /// don't count on exhaustive matching. (Otherwise, adding a new variant
386 /// Create a new span with the given positions.
387 pub fn new(start: Position, end: Position) -> Span {
391 /// Create a new span using the given position as the start and end.
393 Span::new(pos, pos)
396 /// Create a new span by replacing the starting the position with the one
402 /// Create a new span by replacing the ending the position with the one
421 /// Create a new position with the given information.
429 pub fn new(offset: usize, line: usize, column: usize) -> Position {
547 Printer::new().print(self, f)
1028 /// Push a new item in this union.
1378 let empty_span = || Span::splat(Position::new(0, 0, 0));
1439 let empty_span = || Span::splat(Position::new(0, 0, 0));
1481 let span = || Span::splat(Position::new(0, 0, 0));
1487 ast: Box::new(ast),
1495 thread::Builder::new()