You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
497 B

8 years ago
package main
type ElementType int
const (
NotFound ElementType = iota
Class
Method
Field
Constructor
Interface
Exception
Error
Enum
Trait
Notation
Package
)
var VALUES = map[ElementType]string{
Class: "Class",
Method: "Method",
Field: "Field",
Constructor: "Constructor",
Interface: "Interface",
Exception: "Exception",
Error: "Error",
Enum: "Enum",
Trait: "Trait",
Notation: "Notation",
Package: "Package",
}
func (e *ElementType) value() string {
return VALUES[*e]
}