forked from jasder/antlr
Merge branch 'sharpen'
This commit is contained in:
commit
41fb2cea3c
|
@ -328,7 +328,7 @@ namespace Antlr4.Runtime.Atn
|
|||
!= null && !atn.decisionToState[decision].sll);
|
||||
if (outerContext == null)
|
||||
{
|
||||
outerContext = ParserRuleContext.EmptyContext();
|
||||
outerContext = ParserRuleContext.EmptyContext;
|
||||
}
|
||||
SimulatorState state = null;
|
||||
if (!dfa.IsEmpty())
|
||||
|
@ -397,7 +397,7 @@ namespace Antlr4.Runtime.Atn
|
|||
{
|
||||
if (outerContext == null)
|
||||
{
|
||||
outerContext = ParserRuleContext.EmptyContext();
|
||||
outerContext = ParserRuleContext.EmptyContext;
|
||||
}
|
||||
int alt = 0;
|
||||
int m = input.Mark();
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Antlr4.Runtime;
|
||||
using Antlr4.Runtime.Atn;
|
||||
|
|
|
@ -47,8 +47,7 @@ namespace Antlr4.Runtime.Atn
|
|||
public SimulatorState(ParserRuleContext outerContext, DFAState s0, bool useContext
|
||||
, ParserRuleContext remainingOuterContext)
|
||||
{
|
||||
this.outerContext = outerContext != null ? outerContext : ParserRuleContext.EmptyContext
|
||||
();
|
||||
this.outerContext = outerContext != null ? outerContext : ParserRuleContext.EmptyContext;
|
||||
this.s0 = s0;
|
||||
this.useContext = useContext;
|
||||
this.remainingOuterContext = remainingOuterContext;
|
||||
|
|
|
@ -137,10 +137,13 @@ namespace Antlr4.Runtime
|
|||
{
|
||||
}
|
||||
|
||||
// public List<Integer> states;
|
||||
public static Antlr4.Runtime.ParserRuleContext EmptyContext()
|
||||
public static Antlr4.Runtime.ParserRuleContext EmptyContext
|
||||
{
|
||||
return Empty;
|
||||
get
|
||||
{
|
||||
// public List<Integer> states;
|
||||
return Empty;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>COPY a ctx (I'm deliberately not using copy constructor)</summary>
|
||||
|
@ -368,14 +371,20 @@ namespace Antlr4.Runtime
|
|||
}
|
||||
}
|
||||
|
||||
public virtual IToken GetStart()
|
||||
public virtual IToken Start
|
||||
{
|
||||
return start;
|
||||
get
|
||||
{
|
||||
return start;
|
||||
}
|
||||
}
|
||||
|
||||
public virtual IToken GetStop()
|
||||
public virtual IToken Stop
|
||||
{
|
||||
return stop;
|
||||
get
|
||||
{
|
||||
return stop;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Used for rule context info debugging during parse-time, not so much for ATN debugging
|
||||
|
|
|
@ -268,7 +268,7 @@ namespace Antlr4.Runtime
|
|||
|
||||
public string ToString<_T0>(Recognizer<_T0> recog)
|
||||
{
|
||||
return ToString(recog, ParserRuleContext.EmptyContext());
|
||||
return ToString(recog, ParserRuleContext.EmptyContext);
|
||||
}
|
||||
|
||||
public string ToString(IList<string> ruleNames)
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 6743730f698969a938bec3ec2c42c4728a97256c
|
||||
Subproject commit 7cb2b4c6841ec131fadca8e294668113943b91a4
|
|
@ -99,6 +99,7 @@
|
|||
-methodMapping java.io.IOException.IOException(java.lang.Throwable) Sharpen.Extensions.CreateIOException
|
||||
-fieldMapping java.util.Locale.US InvariantCulture
|
||||
-typeMapping java.lang.Comparable System.IComparable
|
||||
-typeMapping java.lang.Comparable<> System.IComparable
|
||||
-typeMapping java.util.Comparator<> System.Collections.Generic.IComparer
|
||||
-typeMapping java.util.HashSet<> System.Collections.Generic.HashSet
|
||||
-typeMapping java.util.Set<> System.Collections.Generic.ISet
|
||||
|
|
Loading…
Reference in New Issue