forked from jasder/antlr
Merge branch 'sharpen'
This commit is contained in:
commit
424787bf43
|
@ -1 +1 @@
|
|||
Subproject commit 851cd3ce131ac59782ba12bd95f6d1f694843e5b
|
||||
Subproject commit 5fb64ac91e36209b99e37a6356e66c41f5e50aab
|
|
@ -570,13 +570,13 @@ namespace Antlr4.Runtime
|
|||
/// <exception cref="System.NotSupportedException">
|
||||
/// if the current parser does not
|
||||
/// implement the
|
||||
/// <see cref="Recognizer{Symbol, ATNInterpreter}.GetSerializedATN()">Recognizer<Symbol, ATNInterpreter>.GetSerializedATN()</see>
|
||||
/// <see cref="Recognizer{Symbol, ATNInterpreter}.SerializedAtn()">Recognizer<Symbol, ATNInterpreter>.SerializedAtn()</see>
|
||||
/// method.
|
||||
/// </exception>
|
||||
[return: NotNull]
|
||||
public virtual ATN GetATNWithBypassAlts()
|
||||
{
|
||||
string serializedAtn = GetSerializedATN();
|
||||
string serializedAtn = SerializedAtn;
|
||||
if (serializedAtn == null)
|
||||
{
|
||||
throw new NotSupportedException("The current parser does not support an ATN with bypass alternatives.");
|
||||
|
|
|
@ -147,11 +147,14 @@ namespace Antlr4.Runtime
|
|||
/// <p>For interpreters, we don't know their serialized ATN despite having
|
||||
/// created the interpreter from it.</p>
|
||||
/// </remarks>
|
||||
public virtual string SerializedAtn
|
||||
{
|
||||
[return: NotNull]
|
||||
public virtual string GetSerializedATN()
|
||||
get
|
||||
{
|
||||
throw new NotSupportedException("there is no serialized ATN");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>For debugging and other purposes, might want the grammar name.</summary>
|
||||
/// <remarks>
|
||||
|
|
Loading…
Reference in New Issue