Lines Matching defs:Es2pandaLibApi
18 module Es2pandaLibApi
70 found_change_type_link = Es2pandaLibApi.change_types.find do |x|
80 @is_ast_node = Es2pandaLibApi.ast_nodes.include?(@es2panda_arg['type'].name) &&
82 @is_ast_node_add_children = Es2pandaLibApi.ast_node_additional_children.include?(@es2panda_arg['type'].name) &&
84 @is_ast_type = Es2pandaLibApi.ast_types.include?(@es2panda_arg['type'].name) &&
86 @is_var_type = Es2pandaLibApi.ast_variables.any? { |variable| variable[1] == @es2panda_arg['type'].name } &&
88 @is_enum_type = Es2pandaLibApi.enums.include?(@es2panda_arg['type'].name)
89 @is_scope_type = Es2pandaLibApi.scopes.include?(@es2panda_arg['type'].name) &&
91 @is_code_gen = Es2pandaLibApi.code_gen_children.include?(@es2panda_arg['type'].name) &&
95 found_change_type_link = Es2pandaLibApi.change_types.find do |x|
101 found_change_type_link = Es2pandaLibApi.change_types.find do |x|
107 found_change_type_link = Es2pandaLibApi.change_types.find do |x|
114 found_change_type_link = Es2pandaLibApi.change_types.find do |x|
120 found_change_type_link = Es2pandaLibApi.change_types.find do |x|
126 found_change_type_link = Es2pandaLibApi.change_types.find do |x|
132 found_change_type_link = Es2pandaLibApi.change_types.find do |x|
441 Es2pandaLibApi.classes.find { |_name, data| data == self }[0]
484 Es2pandaLibApi.log('error', "Error: '#{err.message}'\nConstructor: #{function.name}\nRaw:\n---\n"\
486 Es2pandaLibApi.log('backtrace', err.backtrace.join("\n"), "\n")
487 Es2pandaLibApi.stat_add_unsupported_type(err.message) if err.message.include?('Unsupported type')
488 Es2pandaLibApi.stat_add_constructor(0)
489 Es2pandaLibApi.stat_add_class(0, function.name)
491 Es2pandaLibApi.log('error', "Error: '#{err.message}'\nClass: #{function.name}\nRaw:\n---\n"\
493 Es2pandaLibApi.log('backtrace', err.backtrace.join("\n"), "\n\n")
494 Es2pandaLibApi.stat_add_unsupported_type(err.message) if err.message.include?('Unsupported type')
495 Es2pandaLibApi.stat_add_method(0)
517 Es2pandaLibApi.stat_add_constructor(1)
518 Es2pandaLibApi.stat_add_class(1, class_name)
520 Es2pandaLibApi.log('info', "Supported constructor for class '#{class_name}'\n")
525 Es2pandaLibApi.log('info', "Banned constructor for class '#{class_name}'\n")
533 Es2pandaLibApi.no_gen_constructor_info['postfix_contains']&.each do |postfix|
536 Es2pandaLibApi.no_gen_constructor_info['name_starts_with']&.each do |name_starts_with|
539 Es2pandaLibApi.no_gen_constructor_info['arg_type']&.each do |arg_type|
541 res ||= Es2pandaLibApi.check_fit(arg.type, arg_type)
544 Es2pandaLibApi.no_gen_constructor_info['call_class']&.each do |call_class|
552 Es2pandaLibApi.no_gen_method_info['postfix_contains']&.each do |postfix|
555 Es2pandaLibApi.no_gen_method_info['name_starts_with']&.each do |name_starts_with|
558 Es2pandaLibApi.no_gen_method_info['arg_type']&.each do |arg_type|
560 res ||= Es2pandaLibApi.check_fit(arg.type, arg_type)
563 Es2pandaLibApi.no_gen_method_info['return_type']&.each do |return_type|
569 Es2pandaLibApi.no_gen_method_info['call_class']&.each do |call_class|
646 Es2pandaLibApi.stat_add_method(1)
647 Es2pandaLibApi.log('info', 'supported method: ', method.name, ' class: ', class_name, "\n")
654 Es2pandaLibApi.log('info', "Banned method\n")
773 Es2pandaLibApi.log('stat', "--------------\n")
774 Es2pandaLibApi.log('stat', 'Supported methods: ', @supported_methods, ' / ', @all_methods, ' ( ',
776 Es2pandaLibApi.log('stat', 'Supported constructors: ', @supported_constructors, ' / ', @all_constructors, ' ( ',
778 Es2pandaLibApi.log('stat', "Classes with supported constructor: #{@classes_with_supported_constructor.size} / "\
780 Es2pandaLibApi.log('stat', "--------------\n")
784 Es2pandaLibApi.log('stat', "Unsupported types for constructor: \n")
787 Es2pandaLibApi.log('stat', "#{key}: #{value}\n")
899 Es2pandaLibApi.wrap_data(data)