Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for newPara (0.14 sec)

  1. src/cmd/vendor/rsc.io/markdown/para.go

    	// might have been taken away to start a table.
    	pos := p.pos()
    	pos.EndLine = pos.StartLine + len(b.text) - 1
    	return &Paragraph{
    		pos,
    		p.newText(pos, s),
    	}
    }
    
    func newPara(p *parseState, s line) (line, bool) {
    	// Process paragraph continuation text or start new paragraph.
    	b := p.para()
    	indented := p.lineDepth == len(p.stack)-2 // fully indented, not playing "pargraph continuation text" games
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/vendor/rsc.io/markdown/parse.go

    	for _, fn := range news {
    		if l, ok := fn(p, s); ok {
    			s = l
    			if s.isBlank() {
    				return
    			}
    			p.lineDepth++
    			goto Prefixes
    		}
    	}
    
    	newPara(p, s)
    }
    
    func (c *rootBuilder) extend(p *parseState, s line) (line, bool) {
    	panic("root extend")
    }
    
    var news = []func(*parseState, line) (line, bool){
    	newQuote,
    	newATXHeading,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/inline/inlheur/testdata/props/returns2.go

    	x int
    	y string
    }
    
    func (b *Bar) Plark() Itf {
    	return b
    }
    
    type Itf interface {
    	Plark() Itf
    }
    
    func newBar(x int) Itf {
    	s := 0
    	for i := 0; i < x; i++ {
    		s += i
    	}
    	return &Bar{
    		x: s,
    	}
    }
    
    func newBar2(x int) (int, Itf, bool) {
    	s := 0
    	for i := 0; i < x; i++ {
    		s += i
    	}
    	return 0, &Bar{x: s}, false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:01 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/assignments.go

    			}
    			continue
    		}
    
    		// declare new variable
    		obj := NewVar(ident.Pos(), check.pkg, name, nil)
    		lhsVars[i] = obj
    		if name != "_" {
    			newVars = append(newVars, obj)
    		}
    		check.recordDef(ident, obj)
    	}
    
    	// create dummy variables where the lhs is invalid
    	for i, obj := range lhsVars {
    		if obj == nil {
    			lhsVars[i] = NewVar(lhs[i].Pos(), check.pkg, "_", nil)
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:21:43 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. src/go/types/assignments.go

    			}
    			continue
    		}
    
    		// declare new variable
    		obj := NewVar(ident.Pos(), check.pkg, name, nil)
    		lhsVars[i] = obj
    		if name != "_" {
    			newVars = append(newVars, obj)
    		}
    		check.recordDef(ident, obj)
    	}
    
    	// create dummy variables where the lhs is invalid
    	for i, obj := range lhsVars {
    		if obj == nil {
    			lhsVars[i] = NewVar(lhs[i].Pos(), check.pkg, "_", nil)
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc

            arg_type = quantize_output.getType();
            new_arg = block.addArgument(arg_type, loc);
            quantize_output.replaceAllUsesWith(new_arg);
          } else if (input_type.isUnsignedInteger(
                         current_type.getIntOrFloatBitWidth())) {  // int8 != uint8
            arg_type = quant::ConvertSignedQuantizedToUnsigned(
                quantize_output.getType(), loc);
            new_arg = block.addArgument(arg_type, loc);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. security/pkg/nodeagent/util/util.go

    	}
    
    	writeIfNotEqual := func(fileName string, newData []byte) error {
    		if newData == nil {
    			return nil
    		}
    		oldData, _ := os.ReadFile(path.Join(dir, fileName))
    		if !bytes.Equal(oldData, newData) {
    			if err := file.AtomicWrite(path.Join(dir, fileName), newData, certFileMode); err != nil {
    				return fmt.Errorf("failed to write data to file %v: %v", fileName, err)
    			}
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 17 10:33:38 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/runtime/extension_test.go

    			t.Errorf("1st unmarshal error: %v", err)
    		}
    		newData, err := json.Marshal(new1)
    		if err != nil {
    			t.Errorf("2st marshal error: %v", err)
    		}
    		if err = json.Unmarshal(newData, &new2); err != nil {
    			t.Errorf("2nd unmarshal error: %v", err)
    		}
    		if !bytes.Equal(data, newData) {
    			t.Errorf("%s: re-marshaled data differs from original: %v %v", k, data, newData)
    		}
    		if !reflect.DeepEqual(tc.orig, new1) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 08 22:36:37 UTC 2017
    - 2.8K bytes
    - Viewed (0)
  9. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/IncrementalResultStoringCompiler.java

            generatedResourcesByOrigin.putAll(newData.getGeneratedResourcesByOrigin());
    
            return new AnnotationProcessingData(
                generatedTypesByOrigin,
                newData.getAggregatedTypes(),
                newData.getGeneratedTypesDependingOnAllOthers(),
                generatedResourcesByOrigin,
                newData.getGeneratedResourcesDependingOnAllOthers(),
                newData.getFullRebuildCause()
            );
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  10. pkg/util/pod/pod.go

    	}
    
    	newData, err := json.Marshal(v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{UID: uid}, // only put the uid in the new object to ensure it appears in the patch as a precondition
    		Status:     newPodStatus,
    	})
    	if err != nil {
    		return nil, false, fmt.Errorf("failed to Marshal newData for pod %q/%q: %v", namespace, name, err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 15:22:29 UTC 2022
    - 3K bytes
    - Viewed (0)
Back to top