dump

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Command = &cobra.Command{
		Use:    "dump",
		Hidden: true,
		RunE: func(cmd *cobra.Command, args []string) error {
			suite, err := ntt.NewFromArgs(args...)
			if err != nil {
				return err
			}

			files, _ := project.Files(suite)
			for _, file := range files {
				info := suite.Parse(file)
				if ttcn3 {
					printer.Print(os.Stdout, info.FileSet, info.Module)
				} else {
					dump(reflect.ValueOf(info.Module), "Root: ")
				}
			}

			return nil
		},
	}
)

Functions

func Indent added in v0.9.1

func Indent() string

func Pos added in v0.9.1

func Pos(n ast.Node) string

func Prefix added in v0.9.1

func Prefix(n ast.Node, f string)

func Suffix added in v0.9.1

func Suffix(n ast.Node)

Types

This section is empty.

Jump to

Keyboard shortcuts

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