Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for substVar (0.13 sec)

  1. src/cmd/compile/internal/types2/subst.go

    func (subst *subster) typOrNil(typ Type) Type {
    	if typ == nil {
    		return Typ[Invalid]
    	}
    	return subst.typ(typ)
    }
    
    func (subst *subster) var_(v *Var) *Var {
    	if v != nil {
    		if typ := subst.typ(v.typ); typ != v.typ {
    			return substVar(v, typ)
    		}
    	}
    	return v
    }
    
    func substVar(v *Var, typ Type) *Var {
    	copy := *v
    	copy.typ = typ
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. src/go/types/subst.go

    func (subst *subster) typOrNil(typ Type) Type {
    	if typ == nil {
    		return Typ[Invalid]
    	}
    	return subst.typ(typ)
    }
    
    func (subst *subster) var_(v *Var) *Var {
    	if v != nil {
    		if typ := subst.typ(v.typ); typ != v.typ {
    			return substVar(v, typ)
    		}
    	}
    	return v
    }
    
    func substVar(v *Var, typ Type) *Var {
    	copy := *v
    	copy.typ = typ
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/named.go

    		// hold the instantiated receiver.
    		copy := *origSig
    		sig = &copy
    	}
    
    	var rtyp Type
    	if origm.hasPtrRecv() {
    		rtyp = NewPointer(t)
    	} else {
    		rtyp = t
    	}
    
    	sig.recv = substVar(origSig.recv, rtyp)
    	return substFunc(origm, sig)
    }
    
    // SetUnderlying sets the underlying type and marks t as complete.
    // t must not have type arguments.
    func (t *Named) SetUnderlying(underlying Type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  4. src/go/types/named.go

    		// hold the instantiated receiver.
    		copy := *origSig
    		sig = &copy
    	}
    
    	var rtyp Type
    	if origm.hasPtrRecv() {
    		rtyp = NewPointer(t)
    	} else {
    		rtyp = t
    	}
    
    	sig.recv = substVar(origSig.recv, rtyp)
    	return substFunc(origm, sig)
    }
    
    // SetUnderlying sets the underlying type and marks t as complete.
    // t must not have type arguments.
    func (t *Named) SetUnderlying(underlying Type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 24K bytes
    - Viewed (0)
  5. src/internal/stringslite/strings.go

    	return bytealg.IndexByteString(s, c)
    }
    
    func Index(s, substr string) int {
    	n := len(substr)
    	switch {
    	case n == 0:
    		return 0
    	case n == 1:
    		return IndexByte(s, substr[0])
    	case n == len(s):
    		if substr == s {
    			return 0
    		}
    		return -1
    	case n > len(s):
    		return -1
    	case n <= bytealg.MaxLen:
    		// Use brute force when s and substr both are small
    		if len(s) <= bytealg.MaxBruteForce {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 01:23:42 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-spi.h

    #define EXPECT_FATAL_FAILURE(statement, substr) \
      do { \
        class GTestExpectFatalFailureHelper {\
         public:\
          static void Execute() { statement; }\
        };\
        ::testing::TestPartResultArray gtest_failures;\
        ::testing::internal::SingleFailureChecker gtest_checker(\
            &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
        {\
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/api/v2/tf_dialect_to_executor_test.cc

          "tensorflow/compiler/mlir/tf2xla/api/v2/testdata/");
    }
    
    size_t CountSubstring(absl::string_view str, absl::string_view substr) {
      size_t count = 0;
      size_t idx = str.find(substr);
      while (idx != std::string::npos) {
        count++;
        idx = str.find(substr, idx + 1);
      }
      return count;
    }
    
    class TensorflowDialectToExecutorTest : public ::testing::Test {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 23:22:50 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. src/strings/strings.go

    // Count counts the number of non-overlapping instances of substr in s.
    // If substr is an empty string, Count returns 1 + the number of Unicode code points in s.
    func Count(s, substr string) int {
    	// special case
    	if len(substr) == 0 {
    		return utf8.RuneCountInString(s) + 1
    	}
    	if len(substr) == 1 {
    		return bytealg.CountString(s, substr[0])
    	}
    	n := 0
    	for {
    		i := Index(s, substr)
    		if i == -1 {
    			return n
    		}
    		n++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:48:16 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/metrics/error_collector_inst.cc

                if (absl::StartsWith(note_str, kErrorCodePrefix)) {
                  error_code = note_str.substr(sizeof(kErrorCodePrefix) - 1);
                }
    
                error_message += "\n";
                if (note_str.size() <= kMaxAcceptedNoteSize) {
                  error_message += note_str;
                } else {
                  error_message += note_str.substr(0, kMaxAcceptedNoteSize);
                  error_message += "...";
                }
              }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 01:48:36 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/main/resources/footer.html

        function getCurrentChapterFileName(givenUrl) {
            var currentChapterFileName = givenUrl.substr(givenUrl.lastIndexOf("/") + 1);
            if (currentChapterFileName === "index.html" || currentChapterFileName === "") {
                currentChapterFileName = givenUrl.substr(0, givenUrl.lastIndexOf("/"));
                currentChapterFileName = currentChapterFileName.substr(currentChapterFileName.lastIndexOf("/") + 1) + "/index.html";
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 09:28:20 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top