c6: github.com/c9s/c6/compiler Index | Files

package compiler

import "github.com/c9s/c6/compiler"

Index

Package Files

compact_compiler.go utils.go

Constants

const (
    CSS3Compliant = 1 << (2 * iota)
    CSS4Compliant
    IE7Compliant
    IE8Compliant
    IE9Compliant
    IE10Compliant
    WebKitCompliant
    MozCompliant // optimize for -moz
)

type CompactCompiler Uses

type CompactCompiler struct {
    Context      *runtime.Context
    ContextStack []runtime.Context
    Buffer       bytes.Buffer
    Compliant    int
    Indent       int
}

func NewCompactCompiler Uses

func NewCompactCompiler(context *runtime.Context) *CompactCompiler

func (*CompactCompiler) Compile Uses

func (compiler *CompactCompiler) Compile(any interface{}) *bytes.Buffer

func (*CompactCompiler) CompileComplexSelector Uses

func (compiler *CompactCompiler) CompileComplexSelector(sel *ast.ComplexSelector) (out string)

func (*CompactCompiler) CompileComplexSelectorList Uses

func (compiler *CompactCompiler) CompileComplexSelectorList(selectorList *ast.ComplexSelectorList) string

func (*CompactCompiler) CompileDeclBlock Uses

func (compiler *CompactCompiler) CompileDeclBlock(block *ast.DeclBlock) (out string)

func (*CompactCompiler) CompileRuleSet Uses

func (compiler *CompactCompiler) CompileRuleSet(ruleset *ast.RuleSet) (out string)

func (*CompactCompiler) CompileStmt Uses

func (compiler *CompactCompiler) CompileStmt(anyStm ast.Stmt) string

func (*CompactCompiler) CompileString Uses

func (compiler *CompactCompiler) CompileString(any interface{}) string

func (*CompactCompiler) DisableCompliant Uses

func (compiler *CompactCompiler) DisableCompliant(compliant int)

* Disable compliant

func (*CompactCompiler) EnableCompliant Uses

func (compiler *CompactCompiler) EnableCompliant(compliant int)

* Enable compliant

func (*CompactCompiler) HasCompliant Uses

func (compiler *CompactCompiler) HasCompliant(compliant int) bool

Package compiler imports 4 packages (graph). Updated 2018-08-20. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).