Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for paramList (0.7 sec)

  1. src/cmd/compile/internal/syntax/nodes_test.go

    	testPos(t, types, "package p; func f(", ")",
    		func(f *File) Node { return f.DeclList[0].(*FuncDecl).Type.ParamList[0].Type },
    	)
    
    	testPos(t, fields, "package p; func f(", ")",
    		func(f *File) Node { return f.DeclList[0].(*FuncDecl).Type.ParamList[0] },
    	)
    
    	testPos(t, stmts, "package p; func _() { ", "; }",
    		func(f *File) Node { return f.DeclList[0].(*FuncDecl).Body.List[0] },
    	)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 18:45:06 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/positions.go

    				m = l
    				continue
    			}
    			return n.Pos()
    		case *FuncType:
    			if l := lastField(n.ResultList); l != nil {
    				m = l
    				continue
    			}
    			if l := lastField(n.ParamList); l != nil {
    				m = l
    				continue
    			}
    			return n.Pos()
    		case *MapType:
    			m = n.Value
    		case *ChanType:
    			m = n.Elem
    
    		// statements
    		case *EmptyStmt:
    			return n.Pos()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/syntax/walk.go

    		}
    
    	case *TypeDecl:
    		w.node(n.Name)
    		w.fieldList(n.TParamList)
    		w.node(n.Type)
    
    	case *VarDecl:
    		w.nameList(n.NameList)
    		if n.Type != nil {
    			w.node(n.Type)
    		}
    		if n.Values != nil {
    			w.node(n.Values)
    		}
    
    	case *FuncDecl:
    		if n.Recv != nil {
    			w.node(n.Recv)
    		}
    		w.node(n.Name)
    		w.fieldList(n.TParamList)
    		w.node(n.Type)
    		if n.Body != nil {
    			w.node(n.Body)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:55:04 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/nodes.go

    		node
    	}
    
    	// interface { MethodList[0]; MethodList[1]; ... }
    	InterfaceType struct {
    		MethodList []*Field
    		expr
    	}
    
    	FuncType struct {
    		ParamList  []*Field
    		ResultList []*Field
    		expr
    	}
    
    	// map[Key]Value
    	MapType struct {
    		Key, Value Expr
    		expr
    	}
    
    	//   chan Elem
    	// <-chan Elem
    	// chan<- Elem
    	ChanType struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:38 UTC 2023
    - 9K bytes
    - Viewed (0)
  5. tests/test_starlette_urlconvertors.py

    from fastapi import FastAPI, Path, Query
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    @app.get("/int/{param:int}")
    def int_convertor(param: int = Path()):
        return {"int": param}
    
    
    @app.get("/float/{param:float}")
    def float_convertor(param: float = Path()):
        return {"float": param}
    
    
    @app.get("/path/{param:path}")
    def path_convertor(param: str = Path()):
        return {"path": param}
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Nov 27 14:46:06 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  6. mockwebserver-junit5/src/test/java/mockwebserver3/junit5/internal/ExtensionLifecycleTest.kt

        clientTestRule.newClient().newCall(Request(server.url("/"))).execute().use {
          assertThat(it.code).isEqualTo(200)
        }
      }
    
      @ParameterizedTest
      @ValueSource(ints = [1, 2])
      fun paramTest(
        instance: Int,
        server: MockWebServer,
      ) {
        assertThat(server).isSameInstanceAs(instanceServer)
      }
    
      companion object {
        private lateinit var staticServer: MockWebServer
    
        @JvmStatic
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Feb 11 12:12:36 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top