MCPcopy Create free account

hub / github.com/scottrogowski/code2flow / functions

Functions657 in github.com/scottrogowski/code2flow

↓ 3 callersFunctionmonthsToDays
(months)
tests/test_code/js/moment/moment.js:5278
↓ 3 callersFunctionnormalizeObjectUnits
(inputObject)
tests/test_code/js/moment/moment.js:640
↓ 3 callersFunctionoffsetFromString
(matcher, string)
tests/test_code/js/moment/moment.js:3242
↓ 3 callersFunctionprint_it
(string)
tests/test_code/py/weird_calls/weird_calls.py:1
↓ 3 callersMethodseparate_namespaces
Given a tree element, recursively separate that AST into lists of ASTs for the subgroups, nodes, and body. This is an intermediate st
code2flow/php.py:267
↓ 3 callersFunctionshiftWeekdays
(ws, n)
tests/test_code/js/moment/moment.js:1525
↓ 3 callersMethodto_string
Returns a representation of this call to be printed by the engine in logging. :rtype: str
code2flow/model.py:196
↓ 3 callersMethodtoken_with_ownership
Token which includes what group this is a part of :rtype: str
code2flow/model.py:321
↓ 2 callersFunction_byte_string
Cast a string or byte string to an ASCII byte string.
tests/test_code/py/pytz/tzfile.py:12
↓ 2 callersFunction_generate_graphviz
Write the graphviz file :param str output_file: :param str extension: :param str final_img_filename:
code2flow/engine.py:639
↓ 2 callersFunction_to_seconds
Convert a timedelta to seconds
tests/test_code/py/pytz/tzinfo.py:61
↓ 2 callersFunction_wrap_as_variables
Given a list of either Nodes or Groups, wrap them in variables. This is used in the get_variables method to allow all defined functions a
code2flow/model.py:439
↓ 2 callersFunctiona
()
tests/test_code/js/simple_b_js/simple_b.js:3
↓ 2 callersFunctiona
()
tests/test_code/py/simple_b/simple_b.py:6
↓ 2 callersMethodabra_it
()
tests/test_code/js/ambiguous_names/ambiguous_names.js:9
↓ 2 callersFunctionabsCeil
(number)
tests/test_code/js/moment/moment.js:5209
↓ 2 callersFunctionaddSubtract
(mom, duration, isAdding, updateOffset)
tests/test_code/js/moment/moment.js:3587
↓ 2 callersFunctionaddSubtract$1
(duration, input, value, direction)
tests/test_code/js/moment/moment.js:5189
↓ 2 callersMethodall_parents
Recursively get the entire inheritance tree of this group :rtype: list[Group]
code2flow/model.py:609
↓ 2 callersFunctionas_lines
Ruby ast bodies are structured differently depending on circumstances. This ensures that they are structured as a list of statements :pa
code2flow/ruby.py:134
↓ 2 callersFunctionconfigFromISO
(config)
tests/test_code/js/moment/moment.js:2351
↓ 2 callersFunctionconfigFromRFC2822
(config)
tests/test_code/js/moment/moment.js:2482
↓ 2 callersFunctioncreateAdder
(direction, name)
tests/test_code/js/moment/moment.js:3562
↓ 2 callersFunctioncreateLocalOrUTC
(input, format, locale, strict, isUTC)
tests/test_code/js/moment/moment.js:2993
↓ 2 callersFunctiondayOfYearFromWeeks
(year, week, weekday, dow, doy)
tests/test_code/js/moment/moment.js:1322
↓ 2 callersFunctiondaysToMonths
(days)
tests/test_code/js/moment/moment.js:5272
↓ 2 callersFunctiondeprecateSimple
(name, msg)
tests/test_code/js/moment/moment.js:329
↓ 2 callersMethoddst
(self, dt)
tests/test_code/py/pytz/reference.py:117
↓ 2 callersFunctionexpandFormat
(format, locale)
tests/test_code/js/moment/moment.js:528
↓ 2 callersMethodfact
(which)
tests/test_code/js/ternary_new/ternary_new.js:23
↓ 2 callersFunctionfirst_sunday_on_or_after
(dt)
tests/test_code/py/pytz/reference.py:82
↓ 2 callersFunctionget_call_from_expr
Given an ast that represents a send call, clear and create our generic Call object. Some calls have no chance at resolution (e.g. array[2](pa
code2flow/php.py:37
↓ 2 callersFunctionget_call_from_func_element
Given a python ast that represents a function call, clear and create our generic Call object. Some calls have no chance at resolution (e.g. a
code2flow/python.py:9
↓ 2 callersFunctionget_call_from_send_el
Given an ast that represents a send call, clear and create our generic Call object. Some calls have no chance at resolution (e.g. array[2](pa
code2flow/ruby.py:39
↓ 2 callersMethodget_constructor
Return the first constructor for this group - if any TODO, this excludes the possibility of multiple constructors like __init
code2flow/model.py:559
↓ 2 callersFunctionget_edges_set_from_file
(dot_file)
tests/test_graphs.py:97
↓ 2 callersFunctionget_nodes_set_from_file
(dot_file)
tests/test_graphs.py:83
↓ 2 callersFunctionget_tree_body
Depending on the type of element, get the body of that element :param tree_el ast: :rtype: list[tree_el]
code2flow/ruby.py:151
↓ 2 callersFunctionisString
(input)
tests/test_code/js/moment/moment.js:3616
↓ 2 callersMethodlabel
Labels are what you see on the graph :rtype: str
code2flow/model.py:516
↓ 2 callersFunctionlistMonthsImpl
(format, index, field)
tests/test_code/js/moment/moment.js:5039
↓ 2 callersMethodmajorNum
(self)
tests/test_code/py/inherits/inherits_import.py:4
↓ 2 callersFunctionmake_calls
Given a list of lines, find all calls in this list. :param body_el ast: :rtype: list[Call]
code2flow/ruby.py:75
↓ 2 callersFunctionmake_calls
Given a list of lines, find all calls in this list. :param lines list[ast]: :rtype: list[Call]
code2flow/python.py:41
↓ 2 callersFunctionmake_calls
Given a list of lines, find all calls in this list. :param list|dict body: :rtype: list[Call]
code2flow/javascript.py:97
↓ 2 callersFunctionmake_calls
Given a list of lines, find all calls in this list. :param body_el ast: :rtype: list[Call]
code2flow/php.py:131
↓ 2 callersFunctionmake_local_variables
Given an ast of all the lines in a function, generate a list of variables in that function. Variables are tokens and what they link to. I
code2flow/ruby.py:108
↓ 2 callersFunctionmake_local_variables
Given an ast of all the lines in a function, generate a list of variables in that function. Variables are tokens and what they link to. I
code2flow/python.py:107
↓ 2 callersFunctionmake_local_variables
Given an ast of all the lines in a function, generate a list of variables in that function. Variables are tokens and what they link to. I
code2flow/javascript.py:174
↓ 2 callersFunctionmake_local_variables
Given an ast of all the lines in a function, generate a list of variables in that function. Variables are tokens and what they link to.
code2flow/php.py:167
↓ 2 callersMethodmake_nodes
Given a tree element of all the lines in a function, create the node along with the calls and variables internal to it. Also
code2flow/php.py:299
↓ 2 callersMethodmake_root_node
The "root_node" is an implict node of lines which are executed in the global scope on the file itself and not otherwise part of any f
code2flow/php.py:337
↓ 2 callersFunctionmax
()
tests/test_code/js/moment/moment.js:3080
↓ 2 callersFunctionmeridiem
(token, lowercase)
tests/test_code/js/moment/moment.js:1901
↓ 2 callersFunctionnormalizeLocale
(key)
tests/test_code/js/moment/moment.js:2040
↓ 2 callersFunctionoffset
(token, separator)
tests/test_code/js/moment/moment.js:3206
↓ 2 callersMethodouter_func
(a)
tests/test_code/py/nested_class/nested_class.py:6
↓ 2 callersFunctionpickBy
(fn, moments)
tests/test_code/js/moment/moment.js:3056
↓ 2 callersFunctionpositiveMomentsDifference
(base, other)
tests/test_code/js/moment/moment.js:3529
↓ 2 callersFunctionprepareConfig
(config)
tests/test_code/js/moment/moment.js:2937
↓ 2 callersFunctionprivate
()
tests/test_code/py/subset_find_exception/two.py:1
↓ 2 callersFunctionrun_ast_parser
Parse the php file and return the output + the returncode Separate function b/c unittesting and asserting php-parser installation. :param
code2flow/php.py:214
↓ 2 callersFunctionsearch
()
tests/test_code/py/exclude_modules/exclude_modules.py:5
↓ 2 callersMethodseparate_namespaces
Given a tree element, recursively separate that AST into lists of ASTs for the subgroups, nodes, and body. This is an intermediate st
code2flow/ruby.py:230
↓ 2 callersMethodseparate_namespaces
Given an AST, recursively separate that AST into lists of ASTs for the subgroups, nodes, and body. This is an intermediate step to al
code2flow/javascript.py:289
↓ 2 callersFunctionset$1
(mom, unit, value)
tests/test_code/js/moment/moment.js:719
↓ 2 callersFunctionsetMonth
(mom, value)
tests/test_code/js/moment/moment.js:1090
↓ 2 callersMethodto_dict
Output for json files (json graph specification) :rtype: dict
code2flow/model.py:427
↓ 2 callersFunctionwalk
Walk through the ast tree and return all nodes :param ast tree: :rtype: list[ast]
code2flow/javascript.py:24
↓ 2 callersFunctionwalk
Given an ast tree walk it to get every node. For PHP, the exception is that we return Expr_BinaryOp_Concat which has internal nodes but i
code2flow/php.py:81
↓ 2 callersFunctionwarn
(msg)
tests/test_code/js/moment/moment.js:277
↓ 2 callersFunctionwrite_file
Write a dot file that can be read by graphviz :param outfile File: :param nodes list[Node]: functions :param edges list[Edge]: funct
code2flow/engine.py:231
↓ 1 callersMethod__init__
(self, token, line_number=None, owner_token=None, definite_constructor=False)
code2flow/model.py:187
↓ 1 callersFunction_case_insensitive_zone_lookup
case-insensitively matching timezone, else return zone unchanged
tests/test_code/py/pytz/__init__.py:201
↓ 1 callersFunction_filter_edges_for_subset
Given the subset of nodes, filter for edges within this subset :param new_nodes set[Node]: :param edges list[Edge]: :rtype: list[Edge
code2flow/engine.py:159
↓ 1 callersFunction_filter_for_subset
Given subset_params, return the subset of nodes, edges, and groups upstream and downstream of the target node. :param subset_params Subse
code2flow/engine.py:195
↓ 1 callersFunction_filter_groups_for_subset
Given the subset of nodes, do housekeeping and filter out for groups within this subset :param new_nodes set[Node]: :param file_groups li
code2flow/engine.py:173
↓ 1 callersFunction_filter_nodes_for_subset
Given subset_params, return a set of all nodes upstream and downstream of the target node. :param subset_params SubsetParams: :param all_
code2flow/engine.py:120
↓ 1 callersFunction_find_link_for_call
Given a call that happened on a node (node_a), return the node that the call links to and the call itself if >1 node matched. :param cal
code2flow/engine.py:366
↓ 1 callersFunction_find_links
Iterate through the calls on node_a to find everything the node links to. This will return a list of tuples of nodes and calls that were ambi
code2flow/engine.py:413
↓ 1 callersFunction_find_target_node
Find the node referenced by subset_params.target_function :param subset_params SubsetParams: :param all_nodes list[Node]: :rtype: Nod
code2flow/engine.py:99
↓ 1 callersFunction_generate_final_img
Write the graphviz file :param str output_file: :param str extension: :param str final_img_filename: :param int num_edges:
code2flow/engine.py:658
↓ 1 callersFunction_limit_functions
Exclude nodes (functions) which match any of the exclude_functions :param list[Group] file_groups: :param list exclude_functions: :p
code2flow/engine.py:613
↓ 1 callersFunction_limit_namespaces
Exclude namespaces (classes/modules) which match any of the exclude_namespaces :param list[Group] file_groups: :param list exclude_names
code2flow/engine.py:571
↓ 1 callersFunction_resolve_str_variable
String variables are when variable.points_to is a string This happens ONLY when we have imports that we delayed processing for This func
code2flow/model.py:64
↓ 1 callersFunction_std_string
Cast a string or byte string to an ASCII string.
tests/test_code/py/pytz/tzfile.py:19
↓ 1 callersFunction_test
()
tests/test_code/py/pytz/__init__.py:508
↓ 1 callersFunction_unmunge_zone
Undo the time zone name munging done by older versions of pytz.
tests/test_code/py/pytz/__init__.py:193
↓ 1 callersFunctiona
()
tests/test_code/js/bad_parse/file_a_good.js:1
↓ 1 callersFunctiona
()
tests/test_code/js/two_file_simple/file_a.js:1
↓ 1 callersFunctiona
()
tests/test_code/py/weird_encoding/weird_encoding.py:1
↓ 1 callersFunctiona
()
tests/test_code/py/exclude_modules_two_files/exclude_modules_a.py:5
↓ 1 callersFunctiona
()
tests/test_code/py/two_file_simple/file_a.py:4
↓ 1 callersMethoda
()
tests/test_code/js/scoping/scoping.js:10
↓ 1 callersMethodabra_it
()
tests/test_code/py/ambiguous_resolution/ambiguous_resolution.py:5
↓ 1 callersFunctionabs
()
tests/test_code/js/moment/moment.js:5172
↓ 1 callersFunctionaddTimeToArrayFromToken
(token, input, config)
tests/test_code/js/moment/moment.js:851
↓ 1 callersFunctionalpha
()
tests/test_code/js/exclude_modules/exclude_modules.js:20
↓ 1 callersFunctionalpha
()
tests/test_code/js/exclude_modules_es6/exclude_modules_es6.js:20
↓ 1 callersFunctionalpha
()
tests/test_code/py/exclude_modules/exclude_modules.py:16
← previousnext →101–200 of 657, ranked by callers