internal

package
v0.0.0-...-4cdfe95 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package internal is the internal implementation of the cff compiler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCodegenDirective

func IsCodegenDirective(name string) bool

IsCodegenDirective reports whether the function with the given name in the cff package is a code generation directive.

func NewFlowModifier

func NewFlowModifier(fset *token.FileSet, f *flow, n ast.Expr, i *types.Info) modifier.Modifier

NewFlowModifier returns a Modifier that corresponds to a cff.Flow call.

Types

type PosInfo

type PosInfo struct {
	File         string // the file in which it's defined
	Line, Column int    // line and column in the file where the flow was defined
}

PosInfo contains positional information about a Flow or Task. This may be used to uniquely identify a flow or a task.

type Processor

type Processor struct {
	Fset               *token.FileSet
	InstrumentAllTasks bool
	GenMode            flag.Mode
	RequireBuildTag    bool
}

Processor processes cff files.

func (*Processor) Process

func (p *Processor) Process(pkg *pkg.Package, file *ast.File, outputPath string) error

Process processes a single cff file.

Directories

Path Synopsis
Package emittertest provides testing utilities for cff emitters.
Package emittertest provides testing utilities for cff emitters.
Package flag implements command line flag utilities for the cff command.
Package flag implements command line flag utilities for the cff command.
gendirectives generates a file with the following API:
gendirectives generates a file with the following API:
Package modifier implements modifier-based code generation for cff directives.
Package modifier implements modifier-based code generation for cff directives.
Package pkg defines the interface for loading Go packages.
Package pkg defines the interface for loading Go packages.
tests module

Jump to

Keyboard shortcuts

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