Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewSlice (0.22 sec)

  1. src/cmd/asm/internal/lex/slice.go

    package lex
    
    import (
    	"text/scanner"
    
    	"cmd/internal/src"
    )
    
    // A Slice reads from a slice of Tokens.
    type Slice struct {
    	tokens []Token
    	base   *src.PosBase
    	line   int
    	pos    int
    }
    
    func NewSlice(base *src.PosBase, line int, tokens []Token) *Slice {
    	return &Slice{
    		tokens: tokens,
    		base:   base,
    		line:   line,
    		pos:    -1, // Next will advance to zero.
    	}
    }
    
    func (s *Slice) Next() ScanToken {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jun 29 22:49:50 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/lex/input.go

    	if macro.args == nil {
    		in.Push(NewSlice(in.Base(), in.Line(), macro.tokens))
    		return
    	}
    	tok := in.Stack.Next()
    	if tok != '(' {
    		// If the macro has arguments but is invoked without them, all we push is the macro name.
    		// First, put back the token.
    		in.peekToken = tok
    		in.peekText = in.text
    		in.peek = true
    		in.Push(NewSlice(in.Base(), in.Line(), []Token{Make(macroName, macro.name)}))
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  3. api/go1.5.txt

    pkg go/types, func NewPointer(Type) *Pointer
    pkg go/types, func NewScope(*Scope, token.Pos, token.Pos, string) *Scope
    pkg go/types, func NewSignature(*Var, *Tuple, *Tuple, bool) *Signature
    pkg go/types, func NewSlice(Type) *Slice
    pkg go/types, func NewStruct([]*Var, []string) *Struct
    pkg go/types, func NewTuple(...*Var) *Tuple
    pkg go/types, func NewTypeName(token.Pos, *Package, string, Type) *TypeName
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
Back to top