Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chikaku/gosyn
/ functions
Functions
232 in github.com/chikaku/gosyn
⨍
Functions
232
◇
Types & classes
76
↓ 80 callers
Method
expect
(&mut self, expect: K)
src/parser.rs:89
↓ 48 callers
Method
next
(&mut self)
src/parser.rs:163
↓ 46 callers
Method
current_is
(&self, expect: K)
src/parser.rs:118
↓ 41 callers
Method
skipped
skip while current equal to expect
src/parser.rs:105
↓ 27 callers
Method
type_
(&mut self)
src/parser.rs:582
↓ 25 callers
Function
assert_ident
(expression: &Expression, expected: &str)
src/parser.rs:2385
↓ 25 callers
Function
finish
(parser: &mut Parser)
src/parser.rs:2363
↓ 24 callers
Function
new_started_parser
(s: &str)
src/parser.rs:2357
↓ 22 callers
Method
else_error
(&self, reason: S)
src/parser.rs:85
↓ 18 callers
Method
else_error_at
(&self, pos: usize, reason: S)
src/parser.rs:76
↓ 18 callers
Method
error_at
(&self, pos: usize, reason: S)
src/scanner.rs:97
↓ 17 callers
Method
current_not
(&self, expect: K)
src/parser.rs:128
↓ 16 callers
Method
current_pos
(&self)
src/parser.rs:142
↓ 14 callers
Method
identifier
(&mut self)
src/parser.rs:236
↓ 13 callers
Function
assert_binary
(expression: &Expression, expected: Operator)
src/parser.rs:2392
↓ 12 callers
Method
expression
(&mut self)
src/parser.rs:965
↓ 11 callers
Function
parse_expression_complete
(source: &str)
src/parser.rs:2371
↓ 10 callers
Method
drain_comments
(&mut self)
src/parser.rs:198
↓ 10 callers
Method
parse_decl
( &mut self, mut parse_spec: F, )
src/parser.rs:422
↓ 10 callers
Method
parse_file
parse source into golang file including imports and `type`, `var`, `const` declarations
src/parser.rs:286
↓ 9 callers
Method
error
(&self, reason: S)
src/scanner.rs:93
↓ 9 callers
Method
expression_list
(&mut self)
src/parser.rs:944
↓ 9 callers
Method
line_info
(&self, pos: usize)
src/scanner.rs:78
↓ 9 callers
Method
next_token
(&mut self)
src/scanner.rs:178
↓ 9 callers
Method
parse_block_stmt
(&mut self)
src/parser.rs:1845
↓ 9 callers
Method
parse_simple_stmt
(&mut self)
src/parser.rs:1736
↓ 9 callers
Method
to_str
(self)
src/token.rs:236
↓ 8 callers
Method
check_field_list
(&self, fields: ast::FieldList, trailing: bool)
src/parser.rs:1636
↓ 8 callers
Method
next_char
(&mut self, skp: usize)
src/scanner.rs:106
↓ 8 callers
Method
parameters
Parameters = "(" [ ParameterList [ "," ] ] ")" . ParameterList = ParameterDecl { "," ParameterDecl } .
src/parser.rs:1413
↓ 8 callers
Method
parse_next_level_expr
(&mut self)
src/parser.rs:954
↓ 7 callers
Method
dec_expr_level
(&mut self)
src/parser.rs:54
↓ 7 callers
Function
parse_statement_complete
(source: &str)
src/parser.rs:2378
↓ 7 callers
Method
unexpected
(&self, expect: &[K], actual: Option<(usize, Token)>)
src/parser.rs:58
↓ 6 callers
Method
inc_expr_level
(&mut self)
src/parser.rs:45
↓ 6 callers
Method
path
(&self)
src/scanner.rs:61
↓ 6 callers
Method
scan_lit_number
(&mut self)
src/scanner.rs:456
↓ 5 callers
Method
goback
(&mut self, prev: (usize, bool))
src/parser.rs:153
↓ 5 callers
Method
preback
(&self)
src/parser.rs:149
↓ 5 callers
Function
scan_tokens
(source: &str)
src/scanner.rs:630
↓ 5 callers
Method
type_or_none
Type = TypeName [ TypeArgs ] | TypeLit | "(" Type ")" . TypeName = identifier | QualifiedIdent . TypeArgs = "[" TypeList [ "," ] "]" . TypeList
src/parser.rs:632
↓ 4 callers
Method
identifier_list
(&mut self, first: Option<ast::Ident>)
src/parser.rs:246
↓ 4 callers
Method
next_file
(&mut self)
tests/walkdir.rs:27
↓ 4 callers
Method
parse_result
(&mut self)
src/parser.rs:1397
↓ 4 callers
Method
parse_stmt
parse source into golang Statement
src/parser.rs:1677
↓ 4 callers
Method
position
(&self)
src/scanner.rs:65
↓ 4 callers
Method
qualified_ident
(&mut self, name: Option<ast::Ident>)
src/parser.rs:1597
↓ 4 callers
Method
scan_digits
(&mut self, skp: usize, mut result: String, valid: fn(char) -> bool)
src/scanner.rs:432
↓ 4 callers
Method
scan_next
(&mut self)
src/parser.rs:158
↓ 4 callers
Method
string_literal_or_none
(&mut self)
src/parser.rs:259
↓ 3 callers
Method
check_single_expr
(&mut self, mut list: Vec<ast::Expression>)
src/parser.rs:1805
↓ 3 callers
Method
func_type
(&mut self)
src/parser.rs:750
↓ 3 callers
Method
is
(&self, exp: K)
src/token.rs:277
↓ 3 callers
Function
is_type_elem
(expr: &ast::Expression)
src/parser.rs:2330
↓ 3 callers
Method
next_nstr
(&self, n: usize)
src/scanner.rs:110
↓ 3 callers
Method
parse_for_stmt
(&mut self)
src/parser.rs:2135
↓ 3 callers
Method
parse_interface_type
InterfaceType = "interface" "{" { InterfaceElem ";" } "}" . InterfaceElem = MethodElem | TypeElem .
src/parser.rs:841
↓ 3 callers
Function
parse_source
(path: P)
tests/file.rs:13
↓ 3 callers
Method
parse_switch_stmt
(&mut self)
src/parser.rs:1978
↓ 3 callers
Method
parse_type_elem
TypeElem = TypeTerm { "|" TypeTerm } . TypeTerm = Type | UnderlyingType . UnderlyingType = "~" Type .
src/parser.rs:902
↓ 3 callers
Method
pos
(&self)
src/ast.rs:608
↓ 3 callers
Method
scan_digits2
(&mut self, skp: usize, result: &mut String, valid: fn(char) -> bool)
src/scanner.rs:445
↓ 3 callers
Method
struct_type
(&mut self)
src/parser.rs:768
↓ 3 callers
Method
with_ext
( self, include: [S; N1], exclude: [S; N2], )
tests/walkdir.rs:18
↓ 2 callers
Method
add_line
(&mut self, line_start: usize)
src/scanner.rs:89
↓ 2 callers
Method
array_len
(&mut self)
src/parser.rs:934
↓ 2 callers
Method
array_or_typeargs
x [n]E or x[n,], x[n1, n2], ... when we found an '[' it maybe an slice or array type or type args we will parse type list if it have not extra comman
src/parser.rs:1566
↓ 2 callers
Method
binary_expression
// Expression = UnaryExpr | Expression binary_op Expression .
src/parser.rs:973
↓ 2 callers
Method
check_assign_stmt
(&mut self, list: &Vec<ast::Expression>)
src/parser.rs:1820
↓ 2 callers
Method
current_kind
(&self)
src/parser.rs:135
↓ 2 callers
Function
is_letter
(c: char)
src/scanner.rs:598
↓ 2 callers
Method
kind
(&self)
src/token.rs:268
↓ 2 callers
Method
line_ended
(&mut self)
src/scanner.rs:137
↓ 2 callers
Method
params_list
(&mut self, open: Operator, close: Operator)
src/parser.rs:1421
↓ 2 callers
Method
parse_element_value
(&mut self)
src/parser.rs:1386
↓ 2 callers
Method
parse_func_decl
(&mut self)
src/parser.rs:391
↓ 2 callers
Method
parse_if_stmt
parse if statement like `if _, ok := m[k]; ok { ... }` `if a > 1 {}`
src/parser.rs:1910
↓ 2 callers
Method
parse_import_decl
(&mut self)
src/parser.rs:343
↓ 2 callers
Method
parse_lit_value
(&mut self)
src/parser.rs:1359
↓ 2 callers
Method
parse_package
parse current token as package name which is an ident but can not be '_'
src/parser.rs:335
↓ 2 callers
Method
parse_select_stmt
(&mut self)
src/parser.rs:2069
↓ 2 callers
Method
parse_slice_index_or_type_inst
( &mut self, )
src/parser.rs:1284
↓ 2 callers
Function
parse_source
parse source code to `ast::File`
src/lib.rs:15
↓ 2 callers
Method
parse_stmt_list
(&mut self)
src/parser.rs:1660
↓ 2 callers
Method
parse_type_term
(&mut self)
src/parser.rs:919
↓ 2 callers
Method
primary_expression
Primary expressions are the operands for unary and binary expressions. ```text PrimaryExpr = Operand | Conversion | MethodExpr | PrimaryExpr Selector
src/parser.rs:1067
↓ 2 callers
Method
scan_lit_rune
(&mut self)
src/scanner.rs:380
↓ 2 callers
Method
scan_lit_string
(&mut self)
src/scanner.rs:397
↓ 2 callers
Method
scan_rune
(&mut self, start_at: usize, quote: char)
src/scanner.rs:330
↓ 2 callers
Method
string_literal
(&mut self)
src/parser.rs:272
↓ 2 callers
Method
type_list
parse a comma-separated type list in some case we found an '[' and it may be a list of type instance or just an index expression so we have a paramete
src/parser.rs:599
↓ 1 callers
Method
add_token_cross_line
(&mut self, tok: &Token)
src/scanner.rs:200
↓ 1 callers
Method
check_brace
check if brace is belong to current expression
src/parser.rs:1270
↓ 1 callers
Function
extract
https://github.com/golang/go/blob/master/src/cmd/compile/internal/syntax/parser.go#L665 extra split x to name and expression x force name
src/parser.rs:2248
↓ 1 callers
Method
field_decl
(&mut self)
src/parser.rs:787
↓ 1 callers
Method
func_body
(&mut self)
src/parser.rs:1393
↓ 1 callers
Function
is_decimal_digit
(c: char)
src/scanner.rs:610
↓ 1 callers
Function
is_escaped_char
(c: char, quote: char)
src/scanner.rs:618
↓ 1 callers
Function
is_newline
(c: char)
src/scanner.rs:586
↓ 1 callers
Function
is_octal_digit
(c: char)
src/scanner.rs:606
next →
1–100 of 232, ranked by callers