-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add stubs for antlr4 #11192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Add stubs for antlr4 #11192
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
463513e
Add files via upload
Beakerboy 9c2af91
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e857e1b
Create METADATA.toml
Beakerboy 6e188af
moved files
2904e29
Merge pull request #2 from Beakerboy/move-files
Beakerboy 328b1c9
changed directory name (#3)
Beakerboy 76873d4
Fixed Basic Errors
Beakerboy b4b9f06
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] cda790f
Fixed strict annotations
Beakerboy bc92839
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] ae8c1ee
Added ’ | None = None’
Beakerboy a9d0273
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] b19f2f2
No re-export
Beakerboy 50f8ddb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 9f184a1
Update stubs/antlr4-python3-runtime/METADATA.toml
Beakerboy 2f19d4f
Add antlr4 to the excludelist for stricter pyright settings
AlexWaygood 4a29024
Codemod away the undesirable `Incomplete` annotations
AlexWaygood 6b4e826
Run stubdefaulter
AlexWaygood 8b9085f
Run linters
AlexWaygood d92896b
More codemodding
AlexWaygood 1add9af
Update pyrightconfig.stricter.json
AlexWaygood bb6e3c8
Update stubs/antlr4-python3-runtime/antlr4/CommonTokenFactory.pyi
Beakerboy 2dd61a6
Removed “removed” classes
Beakerboy 2407193
Merge branch 'main' into antlr4
Beakerboy eb23c59
Update stubs/antlr4-python3-runtime/antlr4/atn/PredictionMode.pyi
Beakerboy aa74628
Update stubs/antlr4-python3-runtime/antlr4/PredictionContext.pyi
Beakerboy 6fdd3bf
Update stubs/antlr4-python3-runtime/antlr4/PredictionContext.pyi
Beakerboy fd85b9a
Update stubs/antlr4-python3-runtime/antlr4/PredictionContext.pyi
Beakerboy e7cf59a
Update stubs/antlr4-python3-runtime/antlr4/PredictionContext.pyi
Beakerboy 8d82f89
Update stubs/antlr4-python3-runtime/antlr4/PredictionContext.pyi
Beakerboy d12e60a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 74e3243
Update stubs/antlr4-python3-runtime/antlr4/atn/PredictionMode.pyi
Beakerboy c45194a
Update stubs/antlr4-python3-runtime/antlr4/atn/PredictionMode.pyi
Beakerboy f3bd939
Update stubs/antlr4-python3-runtime/antlr4/dfa/DFASerializer.pyi
Beakerboy 7ae2fe4
Merge branch 'main' into antlr4
Beakerboy 840e81c
Update stubs/antlr4-python3-runtime/antlr4/atn/ParserATNSimulator.pyi
Beakerboy 05eabd2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| version = "4.13.*" | ||
| upstream_repository = "https://github.com/antlr/antlr4" | ||
|
|
||
| [tool.stubtest] | ||
| ignore_missing_stub = true | ||
| platforms = ["linux", "win32"] | ||
39 changes: 39 additions & 0 deletions
39
stubs/antlr4-python3-runtime/antlr4/BufferedTokenStream.pyi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| from _typeshed import Incomplete | ||
|
|
||
| from antlr4.error.Errors import IllegalStateException as IllegalStateException | ||
| from antlr4.Token import Token as Token | ||
|
|
||
| Lexer: Incomplete | ||
|
|
||
| class TokenStream: ... | ||
|
|
||
| class BufferedTokenStream(TokenStream): | ||
| tokenSource: Incomplete | ||
| tokens: Incomplete | ||
| index: int | ||
| fetchedEOF: bool | ||
| def __init__(self, tokenSource: Lexer) -> None: ... | ||
| def mark(self) -> int: ... | ||
| def release(self, marker: int) -> None: ... | ||
| def reset(self) -> None: ... | ||
| def seek(self, index: int) -> None: ... | ||
| def get(self, index: int) -> Token: ... | ||
| def consume(self) -> None: ... | ||
| def sync(self, i: int) -> bool: ... | ||
| def fetch(self, n: int) -> int: ... | ||
| def getTokens(self, start: int, stop: int, types: set[int] | None = None) -> list[Token]: ... | ||
| def LA(self, i: int) -> int: ... | ||
| def LB(self, k: int) -> Token | None: ... | ||
| def LT(self, k: int) -> Token | None: ... | ||
| def adjustSeekIndex(self, i: int): ... | ||
| def lazyInit(self) -> None: ... | ||
| def setup(self) -> None: ... | ||
| def setTokenSource(self, tokenSource: Lexer): ... | ||
| def nextTokenOnChannel(self, i: int, channel: int): ... | ||
| def previousTokenOnChannel(self, i: int, channel: int): ... | ||
| def getHiddenTokensToRight(self, tokenIndex: int, channel: int = -1): ... | ||
| def getHiddenTokensToLeft(self, tokenIndex: int, channel: int = -1): ... | ||
| def filterForChannel(self, left: int, right: int, channel: int): ... | ||
| def getSourceName(self): ... | ||
| def getText(self, start: int | None = None, stop: int | None = None): ... | ||
| def fill(self) -> None: ... |
14 changes: 14 additions & 0 deletions
14
stubs/antlr4-python3-runtime/antlr4/CommonTokenFactory.pyi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| from _typeshed import Incomplete | ||
|
|
||
| from antlr4.Token import CommonToken as CommonToken | ||
|
|
||
| class TokenFactory: ... | ||
|
|
||
| class CommonTokenFactory(TokenFactory): | ||
| DEFAULT: Incomplete | ||
| copyText: Incomplete | ||
| def __init__(self, copyText: bool = False) -> None: ... | ||
| def create( | ||
| self, source: tuple[Incomplete, ...], type: int, text: str, channel: int, start: int, stop: int, line: int, column: int | ||
| ): ... | ||
| def createThin(self, type: int, text: str): ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| from _typeshed import Incomplete | ||
|
|
||
| from antlr4.BufferedTokenStream import BufferedTokenStream as BufferedTokenStream | ||
| from antlr4.Lexer import Lexer as Lexer | ||
| from antlr4.Token import Token as Token | ||
|
|
||
| class CommonTokenStream(BufferedTokenStream): | ||
| channel: Incomplete | ||
| def __init__(self, lexer: Lexer, channel: int = 0) -> None: ... | ||
| def adjustSeekIndex(self, i: int) -> int: ... | ||
| def LB(self, k: int) -> Token | None: ... | ||
| def LT(self, k: int) -> Token | None: ... | ||
| def getNumberOfOnChannelTokens(self) -> int: ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| from _typeshed import Incomplete | ||
|
|
||
| from antlr4.InputStream import InputStream as InputStream | ||
|
|
||
| class FileStream(InputStream): | ||
| fileName: Incomplete | ||
| def __init__(self, fileName: str, encoding: str = "ascii", errors: str = "strict") -> None: ... | ||
| def readDataFrom(self, fileName: str, encoding: str, errors: str = "strict"): ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| from _typeshed import Incomplete | ||
|
|
||
| from antlr4.Token import Token as Token | ||
|
|
||
| class InputStream: | ||
| name: str | ||
| strdata: Incomplete | ||
| data: Incomplete | ||
| def __init__(self, data: str) -> None: ... | ||
| @property | ||
| def index(self): ... | ||
| @property | ||
| def size(self): ... | ||
| def reset(self) -> None: ... | ||
| def consume(self) -> None: ... | ||
| def LA(self, offset: int): ... | ||
| def LT(self, offset: int): ... | ||
| def mark(self): ... | ||
| def release(self, marker: int): ... | ||
| def seek(self, _index: int): ... | ||
| def getText(self, start: int, stop: int): ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| from antlr4.Token import Token as Token | ||
|
|
||
| class IntervalSet: | ||
| intervals: list[range] | None | ||
| readonly: bool | ||
| def __init__(self) -> None: ... | ||
| def __iter__(self): ... | ||
| def __getitem__(self, item): ... | ||
| def addOne(self, v: int): ... | ||
| def addRange(self, v: range): ... | ||
| def addSet(self, other: IntervalSet): ... | ||
| def reduce(self, k: int): ... | ||
| def complement(self, start: int, stop: int): ... | ||
| def __contains__(self, item) -> bool: ... | ||
| def __len__(self) -> int: ... | ||
| def removeRange(self, v) -> None: ... | ||
| def removeOne(self, v) -> None: ... | ||
| def toString(self, literalNames: list[str], symbolicNames: list[str]): ... | ||
| def elementName(self, literalNames: list[str], symbolicNames: list[str], a: int): ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| from _typeshed import Incomplete | ||
|
|
||
| from antlr4.atn.ATN import ATN as ATN | ||
| from antlr4.atn.ATNConfig import ATNConfig as ATNConfig | ||
| from antlr4.atn.ATNState import ATNState as ATNState, RuleStopState as RuleStopState | ||
| from antlr4.atn.Transition import ( | ||
| AbstractPredicateTransition as AbstractPredicateTransition, | ||
| NotSetTransition as NotSetTransition, | ||
| RuleTransition as RuleTransition, | ||
| WildcardTransition as WildcardTransition, | ||
| ) | ||
| from antlr4.IntervalSet import IntervalSet as IntervalSet | ||
| from antlr4.PredictionContext import ( | ||
| PredictionContext as PredictionContext, | ||
| PredictionContextFromRuleContext as PredictionContextFromRuleContext, | ||
| SingletonPredictionContext as SingletonPredictionContext, | ||
| ) | ||
| from antlr4.RuleContext import RuleContext as RuleContext | ||
| from antlr4.Token import Token as Token | ||
|
|
||
| class LL1Analyzer: | ||
| HIT_PRED: Incomplete | ||
| atn: Incomplete | ||
| def __init__(self, atn: ATN) -> None: ... | ||
| def getDecisionLookahead(self, s: ATNState): ... | ||
| def LOOK(self, s: ATNState, stopState: ATNState | None = None, ctx: RuleContext | None = None): ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| from _typeshed import Incomplete | ||
| from typing import TextIO | ||
|
|
||
| from antlr4.atn.LexerATNSimulator import LexerATNSimulator as LexerATNSimulator | ||
| from antlr4.CommonTokenFactory import CommonTokenFactory as CommonTokenFactory | ||
| from antlr4.error.Errors import ( | ||
| IllegalStateException as IllegalStateException, | ||
| LexerNoViableAltException as LexerNoViableAltException, | ||
| RecognitionException as RecognitionException, | ||
| ) | ||
| from antlr4.InputStream import InputStream as InputStream | ||
| from antlr4.Recognizer import Recognizer as Recognizer | ||
| from antlr4.Token import Token as Token | ||
|
|
||
| class TokenSource: ... | ||
|
|
||
| class Lexer(Recognizer, TokenSource): | ||
| DEFAULT_MODE: int | ||
| MORE: int | ||
| SKIP: int | ||
| DEFAULT_TOKEN_CHANNEL: Incomplete | ||
| HIDDEN: Incomplete | ||
| MIN_CHAR_VALUE: int | ||
| MAX_CHAR_VALUE: int | ||
| def __init__(self, input: InputStream, output: TextIO = ...) -> None: ... | ||
| def reset(self) -> None: ... | ||
| def nextToken(self): ... | ||
| def skip(self) -> None: ... | ||
| def more(self) -> None: ... | ||
| def mode(self, m: int): ... | ||
| def pushMode(self, m: int): ... | ||
| def popMode(self): ... | ||
| @property | ||
| def inputStream(self): ... | ||
| @inputStream.setter | ||
| def inputStream(self, input: InputStream): ... | ||
| @property | ||
| def sourceName(self): ... | ||
| def emitToken(self, token: Token): ... | ||
| def emit(self): ... | ||
| def emitEOF(self): ... | ||
| @property | ||
| def type(self): ... | ||
| @type.setter | ||
| def type(self, type: int): ... | ||
| @property | ||
| def line(self): ... | ||
| @line.setter | ||
| def line(self, line: int): ... | ||
| @property | ||
| def column(self): ... | ||
| @column.setter | ||
| def column(self, column: int): ... | ||
| def getCharIndex(self): ... | ||
| @property | ||
| def text(self): ... | ||
| @text.setter | ||
| def text(self, txt: str): ... | ||
| def getAllTokens(self): ... | ||
| def notifyListeners(self, e: LexerNoViableAltException): ... | ||
| def getErrorDisplay(self, s: str): ... | ||
| def getErrorDisplayForChar(self, c: str): ... | ||
| def getCharErrorDisplay(self, c: str): ... | ||
| def recover(self, re: RecognitionException): ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| from _typeshed import Incomplete | ||
|
|
||
| from antlr4.CommonTokenFactory import CommonTokenFactory as CommonTokenFactory | ||
| from antlr4.Lexer import TokenSource as TokenSource | ||
| from antlr4.Token import Token as Token | ||
|
|
||
| class ListTokenSource(TokenSource): | ||
| tokens: Incomplete | ||
| sourceName: Incomplete | ||
| pos: int | ||
| eofToken: Incomplete | ||
| def __init__(self, tokens: list[Token], sourceName: str | None = None) -> None: ... | ||
| @property | ||
| def column(self): ... | ||
| def nextToken(self): ... | ||
| @property | ||
| def line(self): ... | ||
| def getInputStream(self): ... | ||
| def getSourceName(self): ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| from _typeshed import Incomplete | ||
| from typing import TextIO | ||
|
|
||
| from antlr4.atn.ATNDeserializationOptions import ATNDeserializationOptions as ATNDeserializationOptions | ||
| from antlr4.atn.ATNDeserializer import ATNDeserializer as ATNDeserializer | ||
| from antlr4.BufferedTokenStream import TokenStream as TokenStream | ||
| from antlr4.CommonTokenFactory import TokenFactory as TokenFactory | ||
| from antlr4.error.Errors import ( | ||
| RecognitionException as RecognitionException, | ||
| UnsupportedOperationException as UnsupportedOperationException, | ||
| ) | ||
| from antlr4.error.ErrorStrategy import DefaultErrorStrategy as DefaultErrorStrategy | ||
| from antlr4.InputStream import InputStream as InputStream | ||
| from antlr4.Lexer import Lexer as Lexer | ||
| from antlr4.ParserRuleContext import ParserRuleContext as ParserRuleContext | ||
| from antlr4.Recognizer import Recognizer as Recognizer | ||
| from antlr4.RuleContext import RuleContext as RuleContext | ||
| from antlr4.Token import Token as Token | ||
| from antlr4.tree.ParseTreePatternMatcher import ParseTreePatternMatcher as ParseTreePatternMatcher | ||
| from antlr4.tree.Tree import ErrorNode as ErrorNode, ParseTreeListener as ParseTreeListener, TerminalNode as TerminalNode | ||
|
|
||
| class TraceListener(ParseTreeListener): | ||
| def __init__(self, parser) -> None: ... | ||
| def enterEveryRule(self, ctx) -> None: ... | ||
| def visitTerminal(self, node) -> None: ... | ||
| def visitErrorNode(self, node) -> None: ... | ||
| def exitEveryRule(self, ctx) -> None: ... | ||
|
|
||
| class Parser(Recognizer): | ||
| bypassAltsAtnCache: Incomplete | ||
| buildParseTrees: bool | ||
| def __init__(self, input: TokenStream, output: TextIO = ...) -> None: ... | ||
| def reset(self) -> None: ... | ||
| def match(self, ttype: int): ... | ||
| def matchWildcard(self): ... | ||
| def getParseListeners(self): ... | ||
| def addParseListener(self, listener: ParseTreeListener): ... | ||
| def removeParseListener(self, listener: ParseTreeListener): ... | ||
| def removeParseListeners(self) -> None: ... | ||
| def triggerEnterRuleEvent(self) -> None: ... | ||
| def triggerExitRuleEvent(self) -> None: ... | ||
| def getNumberOfSyntaxErrors(self): ... | ||
| def getTokenFactory(self): ... | ||
| def setTokenFactory(self, factory: TokenFactory): ... | ||
| def getATNWithBypassAlts(self): ... | ||
| def compileParseTreePattern(self, pattern: str, patternRuleIndex: int, lexer: Lexer | None = None): ... | ||
| def getInputStream(self): ... | ||
| def setInputStream(self, input: InputStream): ... | ||
| def getTokenStream(self): ... | ||
| def setTokenStream(self, input: TokenStream): ... | ||
| def getCurrentToken(self): ... | ||
| def notifyErrorListeners(self, msg: str, offendingToken: Token | None = None, e: RecognitionException | None = None): ... | ||
| def consume(self): ... | ||
| def addContextToParseTree(self) -> None: ... | ||
| state: Incomplete | ||
| def enterRule(self, localctx: ParserRuleContext, state: int, ruleIndex: int): ... | ||
| def exitRule(self) -> None: ... | ||
| def enterOuterAlt(self, localctx: ParserRuleContext, altNum: int): ... | ||
| def getPrecedence(self): ... | ||
| def enterRecursionRule(self, localctx: ParserRuleContext, state: int, ruleIndex: int, precedence: int): ... | ||
| def pushNewRecursionContext(self, localctx: ParserRuleContext, state: int, ruleIndex: int): ... | ||
| def unrollRecursionContexts(self, parentCtx: ParserRuleContext): ... | ||
| def getInvokingContext(self, ruleIndex: int): ... | ||
| def precpred(self, localctx: RuleContext, precedence: int): ... | ||
| def inContext(self, context: str): ... | ||
| def isExpectedToken(self, symbol: int): ... | ||
| def getExpectedTokens(self): ... | ||
| def getExpectedTokensWithinCurrentRule(self): ... | ||
| def getRuleIndex(self, ruleName: str): ... | ||
| def getRuleInvocationStack(self, p: RuleContext | None = None): ... | ||
| def getDFAStrings(self): ... | ||
| def dumpDFA(self) -> None: ... | ||
| def getSourceName(self): ... | ||
| def setTrace(self, trace: bool): ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| from _typeshed import Incomplete | ||
|
|
||
| from antlr4.atn.ATN import ATN as ATN | ||
| from antlr4.atn.ATNState import ATNState as ATNState, LoopEndState as LoopEndState, StarLoopEntryState as StarLoopEntryState | ||
| from antlr4.atn.ParserATNSimulator import ParserATNSimulator as ParserATNSimulator | ||
| from antlr4.atn.Transition import Transition as Transition | ||
| from antlr4.BufferedTokenStream import TokenStream as TokenStream | ||
| from antlr4.dfa.DFA import DFA as DFA | ||
| from antlr4.error.Errors import ( | ||
| FailedPredicateException as FailedPredicateException, | ||
| RecognitionException as RecognitionException, | ||
| UnsupportedOperationException as UnsupportedOperationException, | ||
| ) | ||
| from antlr4.Lexer import Lexer as Lexer | ||
| from antlr4.Parser import Parser as Parser | ||
| from antlr4.ParserRuleContext import InterpreterRuleContext as InterpreterRuleContext, ParserRuleContext as ParserRuleContext | ||
| from antlr4.PredictionContext import PredictionContextCache as PredictionContextCache | ||
| from antlr4.Token import Token as Token | ||
|
|
||
| class ParserInterpreter(Parser): | ||
| grammarFileName: Incomplete | ||
| atn: Incomplete | ||
| tokenNames: Incomplete | ||
| ruleNames: Incomplete | ||
| decisionToDFA: Incomplete | ||
| sharedContextCache: Incomplete | ||
| pushRecursionContextStates: Incomplete | ||
| def __init__( | ||
| self, grammarFileName: str, tokenNames: list[str], ruleNames: list[str], atn: ATN, input: TokenStream | ||
| ) -> None: ... | ||
| state: Incomplete | ||
| def parse(self, startRuleIndex: int): ... | ||
| def enterRecursionRule(self, localctx: ParserRuleContext, state: int, ruleIndex: int, precedence: int): ... | ||
| def getATNState(self): ... | ||
| def visitState(self, p: ATNState): ... | ||
| def visitRuleStopState(self, p: ATNState): ... |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.