MCPcopy Create free account

hub / github.com/scottrogowski/code2flow / functions

Functions657 in github.com/scottrogowski/code2flow

↓ 1 callersFunctionascii
r""" >>> ascii('Hello') 'Hello' >>> ascii('\N{TRADE MARK SIGN}') #doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most re
tests/test_code/py/pytz/__init__.py:47
↓ 1 callersMethodassert_dependencies
Assert that php and php-parser are installed
code2flow/php.py:231
↓ 1 callersFunctionb
()
tests/test_code/js/simple_b_js/simple_b.js:8
↓ 1 callersFunctionb
()
tests/test_code/js/globals/globals.js:13
↓ 1 callersFunctionb
()
tests/test_code/js/two_file_simple/file_b.js:1
↓ 1 callersFunctionb
()
tests/test_code/py/init/init.py:12
↓ 1 callersFunctionb
()
tests/test_code/py/exclude_modules_two_files/exclude_modules_a.py:9
↓ 1 callersFunctionb
()
tests/test_code/py/simple_b/simple_b.py:11
↓ 1 callersFunctionb
()
tests/test_code/py/two_file_simple/file_b.py:1
↓ 1 callersMethodb
()
tests/test_code/js/scoping/scoping.js:14
↓ 1 callersFunctionbeta
()
tests/test_code/js/exclude_modules/exclude_modules.js:11
↓ 1 callersFunctionbeta
()
tests/test_code/js/exclude_modules_es6/exclude_modules_es6.js:11
↓ 1 callersFunctionbeta
()
tests/test_code/py/exclude_modules/exclude_modules.py:9
↓ 1 callersFunctionc
()
tests/test_code/js/globals/globals.js:3
↓ 1 callersMethodcadabra
(self)
tests/test_code/py/init/init.py:8
↓ 1 callersMethodcadabra_it
(a)
tests/test_code/js/ambiguous_names/ambiguous_names.js:20
↓ 1 callersMethodcadabra_it
(a=None)
tests/test_code/py/ambiguous_resolution/ambiguous_resolution.py:13
↓ 1 callersFunctioncalculateOffset
(obsOffset, militaryOffset, numOffset)
tests/test_code/js/moment/moment.js:2467
↓ 1 callersFunctioncheckWeekday
(weekdayStr, parsedInput, config)
tests/test_code/js/moment/moment.js:2449
↓ 1 callersFunctionchildren
The acorn AST is tricky. This returns all the children of an element :param ast tree: :rtype: list[ast]
code2flow/javascript.py:203
↓ 1 callersFunctionchildren
Given an ast tree get all children. For PHP, children are anything with a nodeType. :param tree_el ast: :rtype: list[ast]
code2flow/php.py:111
↓ 1 callersFunctionchooseLocale
(names)
tests/test_code/js/moment/moment.js:2047
↓ 1 callersFunctioncommonPrefix
(arr1, arr2)
tests/test_code/js/moment/moment.js:2029
↓ 1 callersFunctioncompareArrays
(array1, array2, dontConvert)
tests/test_code/js/moment/moment.js:3188
↓ 1 callersFunctionconfigFromInput
(config)
tests/test_code/js/moment/moment.js:2970
↓ 1 callersFunctionconfigFromObject
(config)
tests/test_code/js/moment/moment.js:2909
↓ 1 callersFunctionconfigFromString
(config)
tests/test_code/js/moment/moment.js:2511
↓ 1 callersFunctionconfigFromStringAndArray
(config)
tests/test_code/js/moment/moment.js:2849
↓ 1 callersFunctioncreateFromConfig
(config)
tests/test_code/js/moment/moment.js:2926
↓ 1 callersFunctioncurrentDateArray
(config)
tests/test_code/js/moment/moment.js:2560
↓ 1 callersFunctiond
()
tests/test_code/js/globals/globals.js:4
↓ 1 callersMethodd
(param)
tests/test_code/js/simple_b_js/simple_b.js:14
↓ 1 callersMethodd
(a="String")
tests/test_code/py/simple_b/simple_b.py:16
↓ 1 callersFunctiondayOfYearFromWeekInfo
(config)
tests/test_code/js/moment/moment.js:2666
↓ 1 callersFunctiondefaultParsingFlags
()
tests/test_code/js/moment/moment.js:108
↓ 1 callersFunctiondefineLocale
(name, config)
tests/test_code/js/moment/moment.js:2131
↓ 1 callersFunctiondetermine_language
Given a list of filepaths, determine the language from the first valid extension :param list[str] individual_files: :rtype: str
code2flow/engine.py:268
↓ 1 callersFunctiondo_calc
()
tests/test_code/js/classes/classes.js:22
↓ 1 callersFunctiondo_calc_wrapper
()
tests/test_code/js/classes/classes.js:28
↓ 1 callersMethoddoit
()
tests/test_code/js/complex_ownership/complex_ownership.js:5
↓ 1 callersMethoddoit
()
tests/test_code/js/two_file_imports/imported.js:6
↓ 1 callersMethoddoit
()
tests/test_code/mjs/two_file_imports_es6/imported_es6.mjs:6
↓ 1 callersMethoddoit2
(varname)
tests/test_code/js/complex_ownership/complex_ownership.js:25
↓ 1 callersMethoddoit2
()
tests/test_code/js/two_file_imports/imported.js:10
↓ 1 callersMethoddoit2
()
tests/test_code/mjs/two_file_imports_es6/imported_es6.mjs:10
↓ 1 callersMethoddoit3
()
tests/test_code/js/complex_ownership/complex_ownership.js:28
↓ 1 callersFunctionextractFromRFC2822Strings
( yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr
tests/test_code/js/moment/moment.js:2407
↓ 1 callersMethodfile_group
Get the file group that this node is in. :rtype: Group
code2flow/model.py:302
↓ 1 callersMethodfile_import_tokens
Returns the token(s) we would use if importing this file from another. :param filename str: :rtype: list[str]
code2flow/php.py:402
↓ 1 callersMethodfilename
The ultimate filename of this group. :rtype: str
code2flow/model.py:523
↓ 1 callersFunctionformat
(inputString)
tests/test_code/js/moment/moment.js:3969
↓ 1 callersMethodfromutc
See datetime.tzinfo.fromutc
tests/test_code/py/pytz/tzinfo.py:193
↓ 1 callersFunctionfunc_1
()
tests/test_code/py/resolve_correct_class/rcc.py:1
↓ 1 callersMethodfunc_2
(self)
tests/test_code/py/resolve_correct_class/rcc.py:13
↓ 1 callersMethodfunc_2
(self)
tests/test_code/py/resolve_correct_class/rcc.py:23
↓ 1 callersFunctionfunc_b
()
tests/test_code/js/simple_a_js/simple_a.js:1
↓ 1 callersFunctionfunc_b
()
tests/test_code/py/weird_calls/weird_calls.py:9
↓ 1 callersFunctionfunc_b
()
tests/test_code/py/simple_a/simple_a.py:1
↓ 1 callersFunctiongenerate_json
Generate a json string from nodes and edges See https://github.com/jsongraph/json-graph-specification :param nodes list[Node]: functions
code2flow/engine.py:211
↓ 1 callersFunctiongetParseRegexForToken
(token, config)
tests/test_code/js/moment/moment.js:797
↓ 1 callersFunctiongetPrioritizedUnits
(unitsObj)
tests/test_code/js/moment/moment.js:663
↓ 1 callersFunctionget_ab
()
tests/test_code/js/weird_assignments/weird_assignments.js:1
↓ 1 callersFunctionget_acorn_version
Get the version of installed acorn :rtype: str
code2flow/javascript.py:232
↓ 1 callersFunctionget_inherits
Get the various types of inheritances this class/module can have :param tree ast: :param body_tree list[ast] :rtype: list[str]
code2flow/ruby.py:168
↓ 1 callersFunctionget_inherits
Get what superclasses this class inherits This handles exact names like 'MyClass' but skips things like 'cls' and 'mod.MyClass' Resolving
code2flow/python.py:132
↓ 1 callersFunctionget_inherits
Gets the superclass of the class. In js, this will be max 1 element :param ast tree: :rtype: list[str]
code2flow/javascript.py:219
↓ 1 callersFunctionget_inherits
Get the various types of inheritances this class/namespace/trait can have :param tree ast: :rtype: list[str]
code2flow/php.py:195
↓ 1 callersFunctionget_sources_and_language
Given a list of files and directories, return just files. If we are not passed a language, determine it. Filter out files that are not of
code2flow/engine.py:285
↓ 1 callersMethodget_tree
Get the entire AST for this file :param filename str: :param lang_params LanguageParams: :rtype: ast
code2flow/php.py:244
↓ 1 callersMethodget_variables
Get variables in-scope on the line number. This includes all local variables as-well-as outer-scope variables :rtype: list[Va
code2flow/model.py:358
↓ 1 callersFunctionimported_func
()
tests/test_code/py/init/the_import.py:11
↓ 1 callersMethodincr
()
tests/test_code/js/classes/classes.js:17
↓ 1 callersFunctioninner
()
tests/test_code/js/two_file_imports/imported.js:15
↓ 1 callersFunctioninner
()
tests/test_code/mjs/two_file_imports_es6/imported_es6.mjs:15
↓ 1 callersMethodinner_func
()
tests/test_code/py/nested_class/nested_class.py:3
↓ 1 callersFunctionisCalendarSpec
(input)
tests/test_code/js/moment/moment.js:3686
↓ 1 callersFunctionisDurationValid
(m)
tests/test_code/js/moment/moment.js:3102
↓ 1 callersFunctionisMomentInput
(input)
tests/test_code/js/moment/moment.js:3621
↓ 1 callersFunctionisMomentInputObject
(input)
tests/test_code/js/moment/moment.js:3634
↓ 1 callersFunctionisNumberOrStringArray
(input)
tests/test_code/js/moment/moment.js:3674
↓ 1 callersMethodis_attr
Whether this node is attached to something besides the file :rtype: bool
code2flow/model.py:312
↓ 1 callersMethodlocalize
Convert naive time to local time
tests/test_code/py/pytz/__init__.py:242
↓ 1 callersMethodmagic
()
tests/test_code/js/ambiguous_names/ambiguous_names.js:5
↓ 1 callersMethodmagic
()
tests/test_code/py/ambiguous_resolution/ambiguous_resolution.py:2
↓ 1 callersFunctionmain
(cls)
tests/test_code/js/ambiguous_names/ambiguous_names.js:26
↓ 1 callersFunctionmain
(cls)
tests/test_code/py/ambiguous_resolution/ambiguous_resolution.py:17
↓ 1 callersFunctionmain
()
tests/test_code/py/async_basic/async_basic.py:9
↓ 1 callersFunctionmain
()
tests/test_code/py/import_paths/import_paths.py:5
↓ 1 callersFunctionmain
()
tests/test_code/py/weird_imports/weird_imports.py:5
↓ 1 callersFunctionmain2
()
tests/test_code/py/import_paths/import_paths.py:10
↓ 1 callersFunctionmajorNum
()
tests/test_code/py/inherits/inherits.py:6
↓ 1 callersMethodmajorNum
()
tests/test_code/js/inheritance/inheritance.js:8
↓ 1 callersFunctionmakeFormatFunction
(format)
tests/test_code/js/moment/moment.js:490
↓ 1 callersMethodmake_class_group
Given an AST for the subgroup (a class), generate that subgroup. In this function, we will also need to generate all of the nodes int
code2flow/php.py:355
↓ 1 callersFunctionmake_file_group
Given an AST for the entire file, generate a file group complete with subgroups, nodes, etc. :param tree ast: :param filename str:
code2flow/engine.py:333
↓ 1 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/ruby.py:254
↓ 1 callersMethodmake_nodes
Given an ast of all the lines in a function, create the node along with the calls and variables internal to it. :param tree
code2flow/python.py:194
↓ 1 callersMethodmake_nodes
Given an ast of all the lines in a function, create the node along with the calls and variables internal to it. Also make the
code2flow/javascript.py:320
↓ 1 callersFunctionmap_it
Given a language implementation and a list of filenames, do these things: 1. Read/parse source ASTs 2. Find all groups (classes/modules)
code2flow/engine.py:432
↓ 1 callersMethodmatches_variable
Check whether this variable is what the call is acting on. For example, if we had 'obj' from obj = Obj() as a var
code2flow/model.py:213
← previousnext →201–300 of 657, ranked by callers