Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for inspector (0.18 sec)

  1. src/cmd/api/main_test.go

    	}
    
    	w.deprecated = make(map[token.Pos]bool)
    	mark := func(id *ast.Ident) {
    		if id != nil {
    			w.deprecated[id.Pos()] = true
    		}
    	}
    	for _, file := range w.current.Files {
    		ast.Inspect(file, func(n ast.Node) bool {
    			switch n := n.(type) {
    			case *ast.File:
    				if isDeprecated(n.Doc) {
    					mark(n.Name)
    				}
    				return true
    			case *ast.GenDecl:
    				if isDeprecated(n.Doc) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
Back to top