discord-jadx/app/src/main/java/com/discord/utilities/textprocessing/Rules$createUnescapeEmotico...

31 lines
1.1 KiB
Java

package com.discord.utilities.textprocessing;
import c.a.u.b.a.a;
import com.discord.simpleast.core.parser.ParseSpec;
import com.discord.simpleast.core.parser.Parser;
import com.discord.simpleast.core.parser.Rule;
import d0.z.d.m;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/* compiled from: Rules.kt */
public final class Rules$createUnescapeEmoticonRule$1 extends Rule<T, a<T>, S> {
public final /* synthetic */ Rules this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public Rules$createUnescapeEmoticonRule$1(Rules rules, Pattern pattern) {
super(pattern);
this.this$0 = rules;
}
@Override // com.discord.simpleast.core.parser.Rule
public ParseSpec<T, S> parse(Matcher matcher, Parser<T, ? super a<T>, S> parser, S s2) {
m.checkNotNullParameter(matcher, "matcher");
m.checkNotNullParameter(parser, "parser");
String group = matcher.group(1);
m.checkNotNull(group);
a aVar = new a(group);
m.checkNotNullParameter(aVar, "node");
return new ParseSpec<>(aVar, s2);
}
}