Skip to content

Commit

Permalink
no need to use autohintedmatcher since it doesn't need a hint
Browse files Browse the repository at this point in the history
  • Loading branch information
douira committed Dec 26, 2022
1 parent 53f0d45 commit 83e958f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import io.github.douira.glsl_transformer.ast.node.type.struct.*;
import io.github.douira.glsl_transformer.ast.print.token.ParserToken;
import io.github.douira.glsl_transformer.ast.query.Root;
import io.github.douira.glsl_transformer.ast.query.match.*;
import io.github.douira.glsl_transformer.ast.query.match.Matcher;
import io.github.douira.glsl_transformer.ast.transform.*;
import io.github.douira.glsl_transformer.basic.JobParameters;
import io.github.douira.glsl_transformer.test_util.*;
Expand Down Expand Up @@ -133,13 +133,13 @@ void testEmptyExternalDeclarationRemoval(String type, String input, String outpu
@ParameterizedTest
@TestCaseSource(caseSet = "outDeclarationModify", spacing = Spacing.TRIM_SINGLE_BOTH)
void testOutDeclarationModify(String type, String input, String output) {
var outDeclarationMatcher = new AutoHintedMatcher<ExternalDeclaration>(
var outDeclarationMatcher = new Matcher<ExternalDeclaration>(
"out float __name;", Matcher.externalDeclarationPattern, "__") {
{
markClassWildcard("type", pattern.getRoot().nodeIndex.getOne(BuiltinNumericTypeSpecifier.class));
}
};
var inDeclarationMatcher = new AutoHintedMatcher<ExternalDeclaration>(
var inDeclarationMatcher = new Matcher<ExternalDeclaration>(
"in float __name;", Matcher.externalDeclarationPattern, "__") {
{
markClassWildcard("type", pattern.getRoot().nodeIndex.getOne(BuiltinNumericTypeSpecifier.class));
Expand Down Expand Up @@ -419,7 +419,7 @@ class SidecarInjector {

@Test
void testAttachLayout() {
var nonLayoutOutDeclarationMatcher = new AutoHintedMatcher<ExternalDeclaration>("out float name;",
var nonLayoutOutDeclarationMatcher = new Matcher<ExternalDeclaration>("out float name;",
Matcher.externalDeclarationPattern) {
{
markClassWildcard("qualifier", pattern.getRoot().nodeIndex.getUnique(TypeQualifier.class));
Expand Down

0 comments on commit 83e958f

Please sign in to comment.