|
1936 | 1936 | \\s* |
1937 | 1937 | (?: |
1938 | 1938 | (?: |
1939 | | - \\( |
1940 | | - \\s* |
| 1939 | + \\(\\s* |
1941 | 1940 | \\.{3}[a-zA-Z_$][\\w$]+ # {function(...string)} variable number of parameters |
1942 | | - \\s* |
1943 | | - \\) |
| 1941 | + \\s*\\) |
1944 | 1942 | ) |
1945 | 1943 | | |
1946 | 1944 | (?: |
1947 | | - \\( |
1948 | | - \\s* |
| 1945 | + \\(\\s* |
1949 | 1946 | (?: |
| 1947 | + (?:\\?|!)? # {function(?string)} or function(!string)} nullable/non-nullable type |
| 1948 | + [a-zA-Z_$][\\w$]+ |
| 1949 | + (?:\\[\\])? # {function(string[])} type application, an array of strings |
1950 | 1950 | (?: |
1951 | 1951 | (?: |
1952 | | - \\? | # {function(?string)} nullable type |
1953 | | - ! # {function(!string)} non-nullable type |
1954 | | - )? |
1955 | | - [a-zA-Z_$][\\w$]+ |
1956 | | - (?:\\[\\])? # {function(string[])} type application, an array of strings |
| 1952 | + (?: |
| 1953 | + \\s*,\\s* |
| 1954 | + (?:\\?|!)? # {function(?string)} or function(!string)} nullable/non-nullable type |
| 1955 | + [a-zA-Z_$][\\w$]+ |
| 1956 | + (?:\\[\\])? # {function(string[])} type application, an array of strings |
| 1957 | + )* |
| 1958 | + (?: |
| 1959 | + \\s*,\\s* |
| 1960 | + \\.{3}[a-zA-Z_$][\\w$]+ # {function(string, ...string)} variable number of parameters |
| 1961 | + )? |
| 1962 | + ) |
| 1963 | + | |
1957 | 1964 | (?: |
1958 | | - \\s*,\\s* |
| 1965 | + =? # {function(string=)} optional parameter |
1959 | 1966 | (?: |
1960 | | - (?: |
1961 | | - (?: |
1962 | | - \\? | # {function(string, ?string)} nullable type |
1963 | | - ! # {function(string, !string)} non-nullable type |
1964 | | - )? |
1965 | | - [a-zA-Z_$][\\w$]+ |
1966 | | - (?:\\[\\])? # {function(string[])} type application, an array of strings |
1967 | | - ) |
1968 | | - ) |
1969 | | - )* |
1970 | | - =? # {function(string=)} optional parameter |
1971 | | - )+ |
1972 | | - (?: |
1973 | | - \\s*,\\s* |
1974 | | - \\.{3}[a-zA-Z_$][\\w$]+ # {function(string, ...string)} variable number of parameters |
1975 | | - )? |
| 1967 | + (?<!=) # {function(string, string, number)} loop non-optional params |
| 1968 | + \\s*,\\s* |
| 1969 | + (?:\\?|!)? # {function(?string)} or function(!string)} nullable/non-nullable type |
| 1970 | + [a-zA-Z_$][\\w$]+ |
| 1971 | + (?:\\[\\])? # {function(string[])} type application, an array of strings |
| 1972 | + =? |
| 1973 | + )* |
| 1974 | + (?: |
| 1975 | + (?<==) # {function(string, string=, number=)} loop optional params |
| 1976 | + \\s*,\\s* |
| 1977 | + (?:\\?|!)? # {function(?string)} or function(!string)} nullable/non-nullable type |
| 1978 | + [a-zA-Z_$][\\w$]+ |
| 1979 | + (?:\\[\\])? # {function(string[])} type application, an array of strings |
| 1980 | + = |
| 1981 | + )* |
| 1982 | + ) |
| 1983 | + ) |
1976 | 1984 | )? |
1977 | | - \\s* |
1978 | | - \\) |
| 1985 | + \\s*\\) |
1979 | 1986 | ) |
1980 | 1987 | ) |
1981 | 1988 | (?: # {function(): string} function return type |
|
2091 | 2098 | \\s* |
2092 | 2099 | (?: |
2093 | 2100 | (?: |
2094 | | - \\( |
2095 | | - \\s* |
| 2101 | + \\(\\s* |
2096 | 2102 | \\.{3}[a-zA-Z_$][\\w$]+ # {function(...string)} variable number of parameters |
2097 | | - \\s* |
2098 | | - \\) |
| 2103 | + \\s*\\) |
2099 | 2104 | ) |
2100 | 2105 | | |
2101 | 2106 | (?: |
2102 | | - \\( |
2103 | | - \\s* |
| 2107 | + \\(\\s* |
2104 | 2108 | (?: |
| 2109 | + (?:\\?|!)? # {function(?string)} or function(!string)} nullable/non-nullable type |
| 2110 | + [a-zA-Z_$][\\w$]+ |
| 2111 | + (?:\\[\\])? # {function(string[])} type application, an array of strings |
2105 | 2112 | (?: |
2106 | 2113 | (?: |
2107 | | - \\? | # {function(?string)} nullable type |
2108 | | - ! # {function(!string)} non-nullable type |
2109 | | - )? |
2110 | | - [a-zA-Z_$][\\w$]+ |
2111 | | - (?:\\[\\])? # {function(string[])} type application, an array of strings |
| 2114 | + (?: |
| 2115 | + \\s*,\\s* |
| 2116 | + (?:\\?|!)? # {function(?string)} or function(!string)} nullable/non-nullable type |
| 2117 | + [a-zA-Z_$][\\w$]+ |
| 2118 | + (?:\\[\\])? # {function(string[])} type application, an array of strings |
| 2119 | + )* |
| 2120 | + (?: |
| 2121 | + \\s*,\\s* |
| 2122 | + \\.{3}[a-zA-Z_$][\\w$]+ # {function(string, ...string)} variable number of parameters |
| 2123 | + )? |
| 2124 | + ) |
| 2125 | + | |
2112 | 2126 | (?: |
2113 | | - \\s*,\\s* |
| 2127 | + =? # {function(string=)} optional parameter |
2114 | 2128 | (?: |
2115 | | - (?: |
2116 | | - (?: |
2117 | | - \\? | # {function(string, ?string)} nullable type |
2118 | | - ! # {function(string, !string)} non-nullable type |
2119 | | - )? |
2120 | | - [a-zA-Z_$][\\w$]+ |
2121 | | - (?:\\[\\])? # {function(string[])} type application, an array of strings |
2122 | | - ) |
2123 | | - ) |
2124 | | - )* |
2125 | | - =? # {function(string=)} optional parameter |
2126 | | - )+ |
2127 | | - (?: |
2128 | | - \\s*,\\s* |
2129 | | - \\.{3}[a-zA-Z_$][\\w$]+ # {function(string, ...string)} variable number of parameters |
2130 | | - )? |
| 2129 | + (?<!=) # {function(string, string, number)} loop non-optional params |
| 2130 | + \\s*,\\s* |
| 2131 | + (?:\\?|!)? # {function(?string)} or function(!string)} nullable/non-nullable type |
| 2132 | + [a-zA-Z_$][\\w$]+ |
| 2133 | + (?:\\[\\])? # {function(string[])} type application, an array of strings |
| 2134 | + =? |
| 2135 | + )* |
| 2136 | + (?: |
| 2137 | + (?<==) # {function(string, string=, number=)} loop optional params |
| 2138 | + \\s*,\\s* |
| 2139 | + (?:\\?|!)? # {function(?string)} or function(!string)} nullable/non-nullable type |
| 2140 | + [a-zA-Z_$][\\w$]+ |
| 2141 | + (?:\\[\\])? # {function(string[])} type application, an array of strings |
| 2142 | + = |
| 2143 | + )* |
| 2144 | + ) |
| 2145 | + ) |
2131 | 2146 | )? |
2132 | | - \\s* |
2133 | | - \\) |
| 2147 | + \\s*\\) |
2134 | 2148 | ) |
2135 | 2149 | ) |
2136 | 2150 | (?: # {function(): string} function return type |
|
0 commit comments