Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Acl ¶
type Acl struct { Decl *ast.AclDeclaration IsUsed bool // mark this acl is accessed at least once }
type Backend ¶
type Backend struct { BackendDecl *ast.BackendDeclaration DirectorDecl *ast.DirectorDeclaration IsUsed bool // mark this backend is accessed at least once }
type Director ¶
type Director struct {
Decl *ast.DirectorDeclaration
}
type Subroutine ¶
type Subroutine struct { Decl *ast.SubroutineDeclaration Body *ast.BlockStatement IsUsed bool // mark this subroutine is called at least once }
func (*Subroutine) String ¶
func (s *Subroutine) String() string
func (*Subroutine) Token ¶
func (s *Subroutine) Token() token.Token
func (*Subroutine) Type ¶
func (s *Subroutine) Type() Type
type Table ¶
type Table struct { Decl *ast.TableDeclaration Name string ValueType Type Properties []*ast.TableProperty IsUsed bool // mark this table is accessed at least once }
type Type ¶
type Type int
const ( // https://developer.fastly.com/reference/vcl/types/ NeverType Type = 0x000000000000000 AclType Type = 0x000000000000001 BackendType Type = 0x000000000000010 BoolType Type = 0x000000000000100 FloatType Type = 0x000000000001000 IDType Type = 0x000000000010000 IntegerType Type = 0x000000000100000 IPType Type = 0x000000001000000 RTimeType Type = 0x000000010000000 StringType Type = 0x000000100000000 TimeType Type = 0x000001000000000 NullType Type = 0x000010000000000 ErrorType Type = 0x000100000000000 SubroutineType Type = 0x001000000000000 TableType Type = 0x010000000000000 DirectorType Type = 0x100000000000000 )
Click to show internal directories.
Click to hide internal directories.