Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ADD_ASSIGN (0.14 sec)

  1. src/go/types/stmt.go

    	check.scope = check.scope.Parent()
    }
    
    func assignOp(op token.Token) token.Token {
    	// token_test.go verifies the token ordering this function relies on
    	if token.ADD_ASSIGN <= op && op <= token.AND_NOT_ASSIGN {
    		return op + (token.ADD - token.ADD_ASSIGN)
    	}
    	return token.ILLEGAL
    }
    
    func (check *Checker) suspendedCall(keyword string, call *ast.CallExpr) {
    	var x operand
    	var msg string
    	var code Code
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  2. src/go/scanner/scanner.go

    		case ']':
    			insertSemi = true
    			tok = token.RBRACK
    		case '{':
    			tok = token.LBRACE
    		case '}':
    			insertSemi = true
    			tok = token.RBRACE
    		case '+':
    			tok = s.switch3(token.ADD, token.ADD_ASSIGN, '+', token.INC)
    			if tok == token.INC {
    				insertSemi = true
    			}
    		case '-':
    			tok = s.switch3(token.SUB, token.SUB_ASSIGN, '-', token.DEC)
    			if tok == token.DEC {
    				insertSemi = true
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 24.3K bytes
    - Viewed (0)
  3. src/go/scanner/scanner_test.go

    	{token.AND, "&", operator},
    	{token.OR, "|", operator},
    	{token.XOR, "^", operator},
    	{token.SHL, "<<", operator},
    	{token.SHR, ">>", operator},
    	{token.AND_NOT, "&^", operator},
    
    	{token.ADD_ASSIGN, "+=", operator},
    	{token.SUB_ASSIGN, "-=", operator},
    	{token.MUL_ASSIGN, "*=", operator},
    	{token.QUO_ASSIGN, "/=", operator},
    	{token.REM_ASSIGN, "%=", operator},
    
    	{token.AND_ASSIGN, "&=", operator},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 15:38:31 UTC 2023
    - 34.6K bytes
    - Viewed (0)
Back to top