dump

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: BSD-3-Clause Imports: 13 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 {
				tree := ttcn3.ParseFile(file)
				if useTTCN3 {
					printer.Print(os.Stdout, tree.FileSet, tree.Root)
				} else if useDot {
					dot(tree.Root)
				} else {
					dump(reflect.ValueOf(tree.Root), "Root: ")
				}
			}

			return nil
		},
	}
)

Functions

func Indent added in v0.9.1

func Indent() string

func IsValid added in v0.14.0

func IsValid(n ast.Node) bool

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