Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isVariable (0.08 sec)

  1. src/cmd/cgo/gcc.go

    		return true
    	}
    	return st.Sel.Name == "StringData"
    }
    
    // isVariable reports whether x is a variable, possibly with field references.
    func (p *Package) isVariable(x ast.Expr) bool {
    	switch x := x.(type) {
    	case *ast.Ident:
    		return true
    	case *ast.SelectorExpr:
    		return p.isVariable(x.X)
    	case *ast.IndexExpr:
    		return true
    	}
    	return false
    }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 18 15:07:34 UTC 2024
    - 97.1K bytes
    - Viewed (0)
Back to top