printer

package
v0.0.0-...-1efd103 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(in ast.Node, opts Options) (output string, err error)

Print prints the input AST node into CSS. It should have deterministic output.

func VLQDecode

func VLQDecode(in []byte) (value int32, len int32)

VLQDecode decodes the input slice into a signed bit. It is complementary to VLQEncode. It returns the read length because the ending is unknown to the caller before decoding.

func VLQEncode

func VLQEncode(in int32) []byte

VLQEncode encodes a signed int into base64 byte slice. According to https://sourcemaps.info/spec.html, 32-bit is long enough for sourcemapping.

Types

type Options

type Options struct {
	OriginalSource *sources.Source
}

Options is a set of options for printing.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL