- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for parenthesize (0.28 sec)
-
src/cmd/compile/internal/syntax/parser.go
// *(T) p.syntaxError("cannot parenthesize embedded type") p.next() typ = p.qualifiedName(nil) p.got(_Rparen) // no need to complain if missing } else { // *T typ = p.qualifiedName(nil) } tag := p.oliteral() p.addField(styp, pos, nil, newIndirect(pos, typ), tag) case _Lparen: p.syntaxError("cannot parenthesize embedded type") p.next() var typ Expr
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0) -
src/go/parser/parser.go
} } else { // T P typ = p.parseType() } } case token.MUL: star := p.pos p.next() if p.tok == token.LPAREN { // *(T) p.error(p.pos, "cannot parenthesize embedded type") p.next() typ = p.parseQualifiedIdent(nil) // expect closing ')' but no need to complain if missing if p.tok == token.RPAREN { p.next() } } else { // *T
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 08 20:07:50 UTC 2023 - 72.2K bytes - Viewed (0) -
src/go/printer/nodes.go
case *ast.ParenExpr: // name(x) combines but we are making sure at // the call site that x is never parenthesized. panic("unexpected parenthesized expression") } return false } // isTypeElem reports whether x is a (possibly parenthesized) type element expression. // The result is false if x could be a type element OR an ordinary (value) expression. func isTypeElem(x ast.Expr) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 17 18:53:17 UTC 2023 - 52.6K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KaFirResolver.kt
if (this !is KtExpression) return null val calleeExpression = deparenthesize(this) ?: return null if (calleeExpression is KtCallExpression) return null val callExpression = parentOfType<KtCallExpression>() ?: return null if (deparenthesize(callExpression.calleeExpression) != calleeExpression) return null return callExpression } /**
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 11 15:45:42 UTC 2024 - 73K bytes - Viewed (0) -
src/text/template/exec_test.go
{"field on interface", "{{.foo}}", "<no value>", nil, true}, {"field on parenthesized interface", "{{(.).foo}}", "<no value>", nil, true}, // Issue 31810: Parenthesized first element of pipeline with arguments. // See also TestIssue31810. {"unparenthesized non-function", "{{1 2}}", "", nil, false}, {"parenthesized non-function", "{{(1) 2}}", "", nil, false}, {"parenthesized non-function with no args", "{{(1)}}", "1", nil, true}, // This is fine.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 22:23:55 UTC 2024 - 60.1K bytes - Viewed (0) -
src/html/template/exec_test.go
{"field on parenthesized interface", "{{(.).foo}}", "", nil, true}, // NOTE: <no value> in text/template // Issue 31810: Parenthesized first element of pipeline with arguments. // See also TestIssue31810. {"unparenthesized non-function", "{{1 2}}", "", nil, false}, {"parenthesized non-function", "{{(1) 2}}", "", nil, false},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 24 21:59:12 UTC 2024 - 57.6K bytes - Viewed (0) -
cmd/api-errors.go
Code: "ParseExpectedLeftParenAfterCast", Description: "Did not find expected the left parenthesis in the SQL expression.", HTTPStatusCode: http.StatusBadRequest, }, ErrParseExpectedLeftParenValueConstructor: { Code: "ParseExpectedLeftParenValueConstructor", Description: "Did not find expected the left parenthesis in the SQL expression.", HTTPStatusCode: http.StatusBadRequest, },
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jun 13 22:26:38 UTC 2024 - 92.1K bytes - Viewed (0) -
src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go
"az": {"alignof ", 1, precUnary}, "cc": {"const_cast", 2, precPostfix}, "cl": {"()", 2, precPostfix}, // cp is not in the ABI but is used by clang "when the call // would use ADL except for being parenthesized." "cp": {"()", 2, precPostfix}, "cm": {",", 2, precComma}, "co": {"~", 1, precUnary}, "dV": {"/=", 2, precAssign}, "dX": {"[...]=", 3, precAssign}, "da": {"delete[] ", 1, precUnary},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 94.1K bytes - Viewed (0) -
src/go/printer/testdata/parser.go
if p.trace { defer un(trace(p, "VarList")) } // a list of identifiers looks like a list of type names for { // parseVarType accepts any type (including parenthesized ones) // even though the syntax does not permit them here: we // accept them all for more robust parsing and complain // afterwards list = append(list, p.parseVarType(isParam)) if p.tok != token.COMMA {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 20:19:51 UTC 2023 - 50.5K bytes - Viewed (0) -
src/cmd/internal/testdir/testdir_test.go
if len(line) > 0 && line[0] != '\t' { functionMarkers = append(functionMarkers, nl) } // Search if this line contains a assembly opcode (which is prefixed by the // original source file/line in parenthesis) matches := rxLine.FindStringSubmatch(line) if len(matches) == 0 { continue } srcFileLine, asm := matches[1], matches[2] // Associate the original file/line information to the current
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 20:08:06 UTC 2024 - 57.5K bytes - Viewed (0)