aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/shedlang/compiler/sources/SourceMatchers.java
blob: 64e70d184bb8661251c0c7236df78f084fed55ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package org.shedlang.compiler.sources;

import org.zwobble.precisely.Matcher;

import static org.zwobble.precisely.Matchers.instanceOf;

public class SourceMatchers {
    private SourceMatchers() {

    }

    public static Matcher<Source> isFileFragmentSource(Matcher<FileFragmentSource> matcher) {
        return instanceOf(FileFragmentSource.class, matcher);
    }
}