Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AddImplicitDots (0.15 sec)

  1. src/cmd/compile/internal/typecheck/subr.go

    }
    
    func NodNil() ir.Node {
    	return ir.NewNilExpr(base.Pos, types.Types[types.TNIL])
    }
    
    // AddImplicitDots finds missing fields in obj.field that
    // will give the shortest unique addressing and
    // modifies the tree with missing field names.
    func AddImplicitDots(n *ir.SelectorExpr) *ir.SelectorExpr {
    	n.X = typecheck(n.X, ctxType|ctxExpr)
    	t := n.X.Type()
    	if t == nil {
    		return n
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 19:45:58 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/expr.go

    		}
    	}
    	return n
    }
    
    // tcDot typechecks an OXDOT or ODOT node.
    func tcDot(n *ir.SelectorExpr, top int) ir.Node {
    	if n.Op() == ir.OXDOT {
    		n = AddImplicitDots(n)
    		n.SetOp(ir.ODOT)
    		if n.X == nil {
    			n.SetType(nil)
    			return n
    		}
    	}
    
    	n.X = Expr(n.X)
    	n.X = DefaultLit(n.X, nil)
    
    	t := n.X.Type()
    	if t == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top