Searched refs:oldToken (Results 1 – 11 of 11) sorted by relevance
178 input=None, start=None, stop=None, oldToken=None): argument181 if oldToken is not None:182 self.type = oldToken.type183 self.line = oldToken.line184 self.charPositionInLine = oldToken.charPositionInLine185 self.channel = oldToken.channel186 self.index = oldToken.index187 self._text = oldToken._text188 self.input = oldToken.input189 if isinstance(oldToken, CommonToken):[all …]
1519 return CommonToken(oldToken=fromToken)
91 public CommonToken( IToken oldToken ) in CommonToken() argument93 text = oldToken.Text; in CommonToken()94 type = oldToken.Type; in CommonToken()95 line = oldToken.Line; in CommonToken()96 index = oldToken.TokenIndex; in CommonToken()97 charPositionInLine = oldToken.CharPositionInLine; in CommonToken()98 channel = oldToken.Channel; in CommonToken()99 input = oldToken.InputStream; in CommonToken()100 if ( oldToken is CommonToken ) in CommonToken()102 start = ( (CommonToken)oldToken ).start; in CommonToken()[all …]
61 public ClassicToken( IToken oldToken ) in ClassicToken() argument63 text = oldToken.Text; in ClassicToken()64 type = oldToken.Type; in ClassicToken()65 line = oldToken.Line; in ClassicToken()66 charPositionInLine = oldToken.CharPositionInLine; in ClassicToken()67 channel = oldToken.Channel; in ClassicToken()
72 public CommonToken(Token oldToken) { in CommonToken() argument73 text = oldToken.getText(); in CommonToken()74 type = oldToken.getType(); in CommonToken()75 line = oldToken.getLine(); in CommonToken()76 index = oldToken.getTokenIndex(); in CommonToken()77 charPositionInLine = oldToken.getCharPositionInLine(); in CommonToken()78 channel = oldToken.getChannel(); in CommonToken()79 input = oldToken.getInputStream(); in CommonToken()80 if ( oldToken instanceof CommonToken ) { in CommonToken()81 start = ((CommonToken)oldToken).start; in CommonToken()[all …]
51 public ClassicToken(Token oldToken) { in ClassicToken() argument52 text = oldToken.getText(); in ClassicToken()53 type = oldToken.getType(); in ClassicToken()54 line = oldToken.getLine(); in ClassicToken()55 charPositionInLine = oldToken.getCharPositionInLine(); in ClassicToken()56 channel = oldToken.getChannel(); in ClassicToken()
85 public CommonToken(IToken oldToken) { in CommonToken() argument86 text = oldToken.Text; in CommonToken()87 type = oldToken.Type; in CommonToken()88 line = oldToken.Line; in CommonToken()89 index = oldToken.TokenIndex; in CommonToken()90 charPositionInLine = oldToken.CharPositionInLine; in CommonToken()91 channel = oldToken.Channel; in CommonToken()92 input = oldToken.InputStream; in CommonToken()93 if (oldToken is CommonToken) { in CommonToken()94 start = ((CommonToken)oldToken).start; in CommonToken()[all …]
58 public ClassicToken(IToken oldToken) { in ClassicToken() argument59 text = oldToken.Text; in ClassicToken()60 type = oldToken.Type; in ClassicToken()61 line = oldToken.Line; in ClassicToken()62 charPositionInLine = oldToken.CharPositionInLine; in ClassicToken()63 channel = oldToken.Channel; in ClassicToken()
2 var oldToken;12 oldToken = arguments[0];13 this.text = oldToken.getText();14 this.type = oldToken.getType();15 this.line = oldToken.getLine();16 this.index = oldToken.getTokenIndex();17 this.charPositionInLine = oldToken.getCharPositionInLine();18 this.channel = oldToken.getChannel();19 if ( oldToken instanceof org.antlr.runtime.CommonToken ) {20 this.start = oldToken.start;[all …]
68 public static function cloneToken(oldToken:Token):CommonToken {69 var token:CommonToken = new CommonToken(oldToken.type, oldToken.text);70 token._line = oldToken.line;71 token._index = oldToken.tokenIndex;72 token._charPositionInLine = oldToken.charPositionInLine;73 token._channel = oldToken.channel;74 if ( oldToken is CommonToken ) {75 token._start = CommonToken(oldToken).startIndex;76 token._stop = CommonToken(oldToken).stopIndex;
168 - (id) initWithToken:(ANTLRCommonToken *)oldToken171 text = [NSString stringWithString:oldToken.text];173 type = oldToken.type;174 line = oldToken.line;175 index = oldToken.index;176 charPositionInLine = oldToken.charPositionInLine;177 channel = oldToken.channel;178 input = oldToken.input;180 if ( [oldToken isKindOfClass:[ANTLRCommonToken class]] ) {181 startIndex = oldToken.startIndex;[all …]