Parser.ExpectWeak C# (CSharp) Method

ExpectWeak() public method

public ExpectWeak ( int n, int follow ) : void
n int
follow int
return void
    void ExpectWeak(int n, int follow)
    {
        if (la.kind == n) Get();
        else {
            SynErr(n);
            while (!StartOf(follow)) Get();
        }
    }