Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 52 for typecheck (0.17 sec)

  1. src/cmd/compile/internal/typecheck/expr.go

    		base.Fatalf("len for OSTRINGHEADER must be non-negative")
    	}
    
    	return n
    }
    
    // tcStar typechecks an ODEREF node, which may be an expression or a type.
    func tcStar(n *ir.StarExpr, top int) ir.Node {
    	n.X = typecheck(n.X, ctxExpr|ctxType)
    	l := n.X
    	t := l.Type()
    	if t == nil {
    		n.SetType(nil)
    		return n
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/abiutils_test.go

    // license that can be found in the LICENSE file.
    
    package test
    
    import (
    	"bufio"
    	"cmd/compile/internal/abi"
    	"cmd/compile/internal/base"
    	"cmd/compile/internal/ssagen"
    	"cmd/compile/internal/typecheck"
    	"cmd/compile/internal/types"
    	"cmd/internal/obj"
    	"cmd/internal/obj/x86"
    	"cmd/internal/src"
    	"fmt"
    	"os"
    	"testing"
    )
    
    // AMD64 registers available:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 15:11:40 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/noder/noder.go

    	"os"
    	"path/filepath"
    	"runtime"
    	"strconv"
    	"strings"
    	"unicode"
    	"unicode/utf8"
    
    	"cmd/compile/internal/base"
    	"cmd/compile/internal/ir"
    	"cmd/compile/internal/syntax"
    	"cmd/compile/internal/typecheck"
    	"cmd/compile/internal/types"
    	"cmd/internal/objabi"
    )
    
    func LoadPackage(filenames []string) {
    	base.Timer.Start("fe", "parse")
    
    	// Limit the number of simultaneously open files.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 11 20:40:57 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  4. 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)
  5. common/config/.golangci.yml

        - exportloopref
        - depguard
        - gocritic
        - gofumpt
        - goimports
        - revive
        - gosimple
        - govet
        - ineffassign
        - lll
        - misspell
        - staticcheck
        - stylecheck
        - typecheck
        - unconvert
        - unparam
        - unused
        - gci
        - gosec
      fast: false
    linters-settings:
      errcheck:
        # report about not checking of errors in type assertions: `a := b.(MyStruct)`;
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 20:03:06 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  6. src/go/types/check_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file implements a typechecker test harness. The packages specified
    // in tests are typechecked. Error messages reported by the typechecker are
    // compared against the errors expected in the test files.
    //
    // Expected errors are indicated in the test files by putting comments
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/check_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file implements a typechecker test harness. The packages specified
    // in tests are typechecked. Error messages reported by the typechecker are
    // compared against the errors expected in the test files.
    //
    // Expected errors are indicated in the test files by putting comments
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/subr.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"
    	"sort"
    	"strings"
    
    	"cmd/compile/internal/base"
    	"cmd/compile/internal/ir"
    	"cmd/compile/internal/types"
    	"cmd/internal/obj"
    	"cmd/internal/src"
    )
    
    func AssignConv(n ir.Node, t *types.Type, context string) ir.Node {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 19:45:58 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // NOTE: If you change this file you must run "go generate"
    // in cmd/compile/internal/typecheck
    // to update builtin.go. This is not done automatically
    // to avoid depending on having a working compiler binary.
    
    //go:build ignore
    
    package runtime
    
    // emitted by compiler, not referred to by go programs
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/typecheck/const.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"
    	"go/constant"
    	"go/token"
    	"math"
    	"math/big"
    	"unicode"
    
    	"cmd/compile/internal/base"
    	"cmd/compile/internal/ir"
    	"cmd/compile/internal/types"
    )
    
    func roundFloat(v constant.Value, sz int64) constant.Value {
    	switch sz {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 10.5K bytes
    - Viewed (0)
Back to top