forked from Juby210/discord-jadx
35 lines
1.2 KiB
Java
35 lines
1.2 KiB
Java
package b.a.t.a;
|
|
|
|
import b.a.t.a.r;
|
|
import com.discord.simpleast.core.node.Node;
|
|
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: TypeScript.kt */
|
|
public final class q extends Rule<RC, Node<RC>, S> {
|
|
public final /* synthetic */ f a;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public q(r.a.C0045a aVar, f fVar, Pattern pattern) {
|
|
super(pattern);
|
|
this.a = fVar;
|
|
}
|
|
|
|
@Override // com.discord.simpleast.core.parser.Rule
|
|
public ParseSpec<RC, S> parse(Matcher matcher, Parser<RC, ? super Node<RC>, S> parser, S s2) {
|
|
m.checkNotNullParameter(matcher, "matcher");
|
|
m.checkNotNullParameter(parser, "parser");
|
|
String group = matcher.group(1);
|
|
String group2 = matcher.group(2);
|
|
String group3 = matcher.group(3);
|
|
m.checkNotNull(group);
|
|
m.checkNotNull(group2);
|
|
r.a aVar = new r.a(group, group2, group3, this.a);
|
|
m.checkNotNullParameter(aVar, "node");
|
|
return new ParseSpec<>(aVar, s2);
|
|
}
|
|
}
|