Lines Matching defs:compiler

13 type compiler struct {  struct
14 prog *program
15 stringIndexes map[string]uint8
16 ifaceIndexes map[interface{}]uint8
17 strict bool
18 fset *token.FileSet
21 …nc (c *compiler) Compile(fset *token.FileSet, root ast.Node, strict bool) (p *program, err error) {
54 func (c *compiler) errorf(n ast.Node, format string, args ...interface{}) compileError {
60 func (c *compiler) toUint8(n ast.Node, v int) uint8 {
67 func (c *compiler) internString(n ast.Node, s string) uint8 {
80 func (c *compiler) internIface(n ast.Node, v interface{}) uint8 {
93 func (c *compiler) emitInst(inst instruction) {
97 func (c *compiler) emitInstOp(op operation) {
101 func (c *compiler) compileNode(n ast.Node) {
122 func (c *compiler) compileOptStmt(n ast.Stmt) {
132 func (c *compiler) compileOptExpr(n ast.Expr) {
140 func (c *compiler) compileFieldList(n *ast.FieldList) {
148 func (c *compiler) compileField(n *ast.Field) {
173 func (c *compiler) compileValueSpec(spec *ast.ValueSpec) {
197 func (c *compiler) compileTypeSpec(spec *ast.TypeSpec) {
203 func (c *compiler) compileFile(n *ast.File) {
213 func (c *compiler) compileDecl(n ast.Decl) {
225 func (c *compiler) compileFuncDecl(n *ast.FuncDecl) {
242 func (c *compiler) compileGenDecl(n *ast.GenDecl) {
262 func (c *compiler) compileExpr(n ast.Expr) {
308 func (c *compiler) compileBasicLit(n *ast.BasicLit) {
338 func (c *compiler) compileBinaryExpr(n *ast.BinaryExpr) {
347 func (c *compiler) compileIndexExpr(n *ast.IndexExpr) {
353 func (c *compiler) compileWildIdent(n *ast.Ident, optional bool) {
371 func (c *compiler) compileIdent(n *ast.Ident) {
383 func (c *compiler) compileCallExpr(n *ast.CallExpr) {
396 func (c *compiler) compileUnaryExpr(n *ast.UnaryExpr) {
404 func (c *compiler) compileStarExpr(n *ast.StarExpr) {
409 func (c *compiler) compileParenExpr(n *ast.ParenExpr) {
414 func (c *compiler) compileSliceExpr(n *ast.SliceExpr) {
448 func (c *compiler) compileFuncType(n *ast.FuncType) {
461 func (c *compiler) compileArrayType(n *ast.ArrayType) {
472 func (c *compiler) compileMapType(n *ast.MapType) {
478 func (c *compiler) compileChanType(n *ast.ChanType) {
486 func (c *compiler) compileCompositeLit(n *ast.CompositeLit) {
499 func (c *compiler) compileFuncLit(n *ast.FuncLit) {
505 func (c *compiler) compileEllipsis(n *ast.Ellipsis) {
514 func (c *compiler) compileKeyValueExpr(n *ast.KeyValueExpr) {
520 func (c *compiler) compileSelectorExpr(n *ast.SelectorExpr) {
535 func (c *compiler) compileTypeAssertExpr(n *ast.TypeAssertExpr) {
546 func (c *compiler) compileStmt(n ast.Stmt) {
592 func (c *compiler) compileAssignStmt(n *ast.AssignStmt) {
621 func (c *compiler) compileBlockStmt(n *ast.BlockStmt) {
629 func (c *compiler) compileExprStmt(n *ast.ExprStmt) {
638 func (c *compiler) compileIfStmt(n *ast.IfStmt) {
689 func (c *compiler) compileCommClause(n *ast.CommClause) {
700 func (c *compiler) compileCaseClause(n *ast.CaseClause) {
714 func (c *compiler) compileSwitchBody(n *ast.BlockStmt) {
745 func (c *compiler) compileSwitchStmt(n *ast.SwitchStmt) {
768 func (c *compiler) compileTypeSwitchStmt(n *ast.TypeSwitchStmt) {
777 func (c *compiler) compileSelectStmt(n *ast.SelectStmt) {
814 func (c *compiler) compileForStmt(n *ast.ForStmt) {
848 func (c *compiler) compileRangeStmt(n *ast.RangeStmt) {
876 func (c *compiler) compileIncDecStmt(n *ast.IncDecStmt) {
884 func (c *compiler) compileEmptyStmt(n *ast.EmptyStmt) {
889 func (c *compiler) compileReturnStmt(n *ast.ReturnStmt) {
897 func (c *compiler) compileBranchStmt(n *ast.BranchStmt) {
920 func (c *compiler) compileLabeledStmt(n *ast.LabeledStmt) {
935 func (c *compiler) compileGoStmt(n *ast.GoStmt) {
940 func (c *compiler) compileDeferStmt(n *ast.DeferStmt) {
945 func (c *compiler) compileSendStmt(n *ast.SendStmt) {
951 func (c *compiler) compileStmtSlice(stmts stmtSlice) {
959 func (c *compiler) compileExprSlice(exprs exprSlice) {