Module swc_macros_common::prelude

source ·

Re-exports§

Structs§

  • A delimited token stream.
  • A literal string ("hello"), byte string (b"hello"), character ('a'), byte character (b'a'), an integer or floating point number with or without a suffix (1, 1u8, 2.3, 2.3f32).
  • A Punct is a single punctuation character like +, - or #.
  • A punctuated sequence of syntax tree nodes of type T separated by punctuation of type P.
  • A region of source code, along with macro expansion information.
  • An abstract stream of tokens, or more concretely a sequence of token trees.

Enums§

  • Describes how a sequence of token trees is delimited.
  • A single syntax tree node of type T followed by its trailing punctuation of type P if any.
  • A single token or a delimited sequence of token trees (e.g. [1, (), ..]).

Traits§