- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 125 for typechecker (0.34 sec)
-
src/cmd/compile/internal/ir/fmt.go
} } if n.Type() != nil { if n.Op() == OTYPE { fmt.Fprintf(w, " type") } fmt.Fprintf(w, " %+v", n.Type()) } if n.Typecheck() != 0 { fmt.Fprintf(w, " tc(%d)", n.Typecheck()) } if n.Pos().IsKnown() { fmt.Fprint(w, " # ") switch n.Pos().IsStmt() { case src.PosNotStmt: fmt.Fprint(w, "_") // "-" would be confusing
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 15:20:28 UTC 2023 - 26K bytes - Viewed (0) -
platforms/jvm/language-groovy/src/main/java/org/gradle/api/tasks/compile/GroovyCompileOptions.java
* } * </pre> * <p> * For example, to activate type checking for all Groovy classes… * </p> * <pre> * import groovy.transform.TypeChecked * * withConfig(configuration) { * ast(TypeChecked) * } * </pre> * <p>
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 12.4K bytes - Viewed (0) -
src/cmd/compile/internal/walk/stmt.go
ir.OCLOSE, ir.OCOPY, ir.OCALLINTER, ir.OCALL, ir.OCALLFUNC, ir.ODELETE, ir.OSEND, ir.OPRINT, ir.OPRINTLN, ir.OPANIC, ir.ORECOVERFP, ir.OGETG: if n.Typecheck() == 0 { base.Fatalf("missing typecheck: %+v", n) } init := ir.TakeInit(n) n = walkExpr(n, &init) if n.Op() == ir.ONAME { // copy rewrote to a statement list and a temp for the length.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 06 15:42:30 UTC 2023 - 4.7K bytes - Viewed (0) -
test/fixedbugs/issue9370.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Verify that concrete/interface comparisons are // typechecked correctly by the compiler. package main type I interface { Method() } type C int func (C) Method() {} type G func() func (G) Method() {} var ( e interface{} i I
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 22 17:50:13 UTC 2020 - 5K bytes - Viewed (0) -
src/internal/types/testdata/check/decls0.go
B bool I int32 A [10]P T struct { x, y P } P *T R (*R) F func(A) I Y interface { f(A) I } S [](((P))) M map[I]F C chan<- I // blank types must be typechecked _ pi /* ERROR "not a type" */ _ struct{} _ struct{ pi /* ERROR "not a type" */ } ) // declarations of init const _, init /* ERROR "cannot declare init" */ , _ = 0, 1, 2
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 4.1K bytes - Viewed (0) -
src/cmd/compile/internal/ir/const.go
return NewBasicLit(pos, typ, constant.MakeBool(false)) case typ.IsString(): return NewBasicLit(pos, typ, constant.MakeString("")) case typ.IsArray() || typ.IsStruct(): // TODO(mdempsky): Return a typechecked expression instead. return NewCompLitExpr(pos, OCOMPLIT, typ, nil) } base.FatalfAt(pos, "unexpected type: %v", typ) panic("unreachable") } var ( intZero = constant.MakeInt64(0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 18:53:26 UTC 2023 - 4K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/dcl.go
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package typecheck import ( "fmt" "sync" "cmd/compile/internal/base" "cmd/compile/internal/ir" "cmd/compile/internal/types" "cmd/internal/src" ) var funcStack []*ir.Func // stack of previous values of ir.CurFunc
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:15:50 UTC 2023 - 3.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/mono_test.go
src := "package x; import `unsafe`; var _ unsafe.Pointer;\n" + body var buf strings.Builder conf := types2.Config{ Error: func(err error) { fmt.Fprintln(&buf, err) }, Importer: defaultImporter(), } typecheck(src, &conf, nil) if buf.Len() == 0 { return nil } return errors.New(strings.TrimRight(buf.String(), "\n")) } func TestMonoGood(t *testing.T) { for i, good := range goods {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 28 17:58:07 UTC 2023 - 2.5K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/subr.go
} } // 3. dst is an interface type and src implements dst. if dst.IsInterface() && src.Kind() != types.TNIL { if src.IsShape() { // Shape types implement things they have already // been typechecked to implement, even if they // don't have the methods for them. return ir.OCONVIFACE, "" } if src.HasShape() { // Unified IR uses OCONVIFACE for converting all derived types
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 19:45:58 UTC 2023 - 20.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/sizes_test.go
// This file contains tests for sizes. package types2_test import ( "cmd/compile/internal/syntax" "cmd/compile/internal/types2" "internal/testenv" "testing" ) // findStructType typechecks src and returns the first struct type encountered. func findStructType(t *testing.T, src string) *types2.Struct { return findStructTypeConfig(t, src, &types2.Config{}) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 16 21:00:48 UTC 2023 - 4.1K bytes - Viewed (0)