1919require_jar ( 'com.dylibso.chicory' , 'log' , '1.6.1' )
2020
2121module Prism # :nodoc:
22- class WASMCommon < Common
22+ class WASMCommon < Common # :nodoc:
2323 java_import org . ruby_lang . prism . wasm . Prism
2424
2525 # TODO: concurrency
@@ -30,48 +30,27 @@ def version
3030 WASM ::PRISM . version
3131 end
3232
33- # Prototype WASM code
34- # def dump(source, **options)
35- # parsed = WASM::PRISM.parse(source.to_java_bytes, dump_options(options).to_java_bytes)
36- # end
37- #
38- # # Mirror the Prism.dump_file API by using the serialization API.
39- # def dump_file(filepath, **options)
40- # dump_file(File.read(filepath), filepath: filepath, **options)
41- # end
42- #
43- # # Mirror the Prism.lex API by using the serialization API.
44- # def lex(source, **options)
45- # lexed = WASM::PRISM.lex(source.to_java_bytes, dump_options(options).to_java_bytes)
46- # Serialize.load_lex(source, lexed, options.fetch(:freeze, false))
47- # end
48- #
49- # # Mirror the Prism.lex_file API by using the serialization API.
50- # def lex_file(filepath, **options)
51- # lex_file(File.read(filepath), filepath: filepath, **options)
52- # end
53-
54- def with_buffer ( &b )
33+ def with_buffer ( &b ) # :nodoc:
5534 raise NotImplementedError
5635 end
5736
58- def with_string ( string , &b )
37+ def with_string ( string , &b ) # :nodoc:
5938 raise NotImplementedError
6039 end
6140
62- def with_file ( string , &b )
41+ def with_file ( string , &b ) # :nodoc:
6342 raise NotImplementedError
6443 end
6544
66- def lex_only ( buffer , string , options )
45+ def lex_only ( buffer , string , options ) # :nodoc:
6746 raise NotImplementedError
6847 end
6948
70- def parse_only ( buffer , string , options )
49+ def parse_only ( buffer , string , options ) # :nodoc:
7150 raise NotImplementedError
7251 end
7352
74- def parse_stream ( buffer , callback , eof_callback , options , source )
53+ def parse_stream ( buffer , callback , eof_callback , options , source ) # :nodoc:
7554 raise NotImplementedError
7655 end
7756
@@ -87,15 +66,15 @@ def parse_file_success(string, options) # :nodoc:
8766 raise NotImplementedError
8867 end
8968
90- def string_query_method_name ( string )
69+ def string_query_method_name ( string ) # :nodoc:
9170 raise NotImplementedError
9271 end
9372
94- def string_query_constant ( string )
73+ def string_query_constant ( string ) # :nodoc:
9574 raise NotImplementedError
9675 end
9776
98- def string_query_local ( string )
77+ def string_query_local ( string ) # :nodoc:
9978 raise NotImplementedError
10079 end
10180 end
0 commit comments