Searched refs:handle_event (Results 1 – 1 of 1) sorted by relevance
/thrift-3.4.0/lib/erl/src/ |
D | thrift_json_parser.erl | 23 -export([parser/0, handle_event/2]). 32 handle_event(Event, {Handler, State}, _Config) -> {Handler, Handler:handle_event(Event, State)}. function 34 handle_event(end_json, State) -> lists:reverse([end_json] ++ State); function 35 handle_event(Event, State) -> [Event] ++ State. function 121 object(Rest, handle_event(start_object, Handler, Config), [key|Stack], Config); 123 array(Rest, handle_event(start_array, Handler, Config), [array|Stack], Config); 133 maybe_done(Rest, handle_event(end_object, Handler, Config), Stack, Config); 141 maybe_done(Rest, handle_event(end_array, Handler, Config), Stack, Config); 246 colon(Rest, handle_event({key, end_seq(Acc, Config)}, Handler, Config), Stack, Config); 248 maybe_done(Rest, handle_event({string, end_seq(Acc, Config)}, Handler, Config), Stack, Config).
|