Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for emphasize (0.25 sec)

  1. src/cmd/compile/internal/syntax/parser.go

    		if as, ok := s.(*AssignStmt); ok && as.Op == 0 {
    			// Emphasize complex Lhs and Rhs of assignment with parentheses to highlight '='.
    			str = "assignment " + emphasize(as.Lhs) + " = " + emphasize(as.Rhs)
    		} else {
    			str = String(s)
    		}
    		p.syntaxErrorAt(s.Pos(), fmt.Sprintf("cannot use %s as value", str))
    	}
    
    	p.xnest = outer
    	return
    }
    
    // emphasize returns a string representation of x, with (top-level)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
Back to top