HomeSort by relevance Sort by last modified time
    Searched refs:to_s (Results 1 - 25 of 38) sorted by null

1 2

  /external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/template/
parameter.rb 7 def to_s method in class:ANTLR3.Template.Parameter
26 names = map { | param | param.name.to_s }
27 @splat and names << @splat.to_s
28 @block and names << @block.to_s
36 else Parameter.new( name.to_s )
48 def to_s method in class:ANTLR3.Template.ParameterList
50 @splat and signature << ", *" << @splat.to_s
51 @block and signature << ", &" << @block.to_s
  /external/antlr/antlr-3.4/runtime/Ruby/test/unit/
test-template.rb 26 vars = context.instance_variables.map { | i | i.to_s }
96 @group.template_defined?( name.to_s ).should be_true
110 @group.private_instance_methods.should include name.to_s
139 | <%= attribute( :name => attr, :access => ( access || 'rw' ) ).to_s.chomp %>
151 | % case @access.to_s.downcase
180 MethodDescription.new( :to_s, '@name.to_s.dup' )
190 vegetable.to_s.should == tidy( <<-END.chomp )
200 | def to_s
201 | @name.to_s.du
    [all...]
test-scope.rb 16 @A.members.map( &:to_s ).should == %w( a b )
17 @B.members.map( &:to_s ).should == %w( count )
18 @C.members.map( &:to_s ).should == %w( a b c )
test-tree-wizard.rb 217 imap.map { |type, nodes| [type, nodes.map { |n| n.to_s }] }
255 elements << node.to_s
267 elements << node.to_s
279 elements << node.to_s
291 elements << node.to_s
298 '%s@%s[%d]' % [node.to_s, (parent || 'nil').to_s, index]
329 elements << node.to_s
348 suffix = names.map { |n| labels[n].to_s }.join('&')
349 '%s@%s[%d]%s' % [node.to_s, (parent || 'nil').to_s, index, suffix
    [all...]
  /external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/
template.rb 127 erb.def_method( sclass, 'to_s' )
132 self::TEMPLATES.fetch( name.to_s ).new( values )
140 self::TEMPLATES.has_key?( name.to_s )
144 name = name.to_s.dup.freeze
147 ERB.new( source, nil, '%' ).def_method( tclass, 'to_s' )
155 new_name, old_name = new_name.to_s.dup.freeze, old_name.to_s
156 context = self::TEMPLATES.fetch( old_name.to_s ) do
189 end.to_s
203 TEMPLATES[ #{ name.inspect } ].new( values ).to_s
288 def to_s method in class:Parameter
325 def to_s method in class:ParameterList
    [all...]
util.rb 10 str = str.to_s.gsub( /([A-Z]+)([A-Z][a-z])/,'\1_\2' )
71 raise TypeError, #{ message.to_s.inspect }
84 extra_message and message << '; ' << extra_message.to_s
task.rb 134 dir = options[ :output_directory ] and @output_directory = dir.to_s
143 else Shellwords.shellwords( opts.to_s )
148 else Shellwords.shellwords( opts.to_s )
220 token = token.to_s.dup
252 @path = path.to_s
429 @path = path.to_s
token.rb 120 when Symbol then name == obj.to_s
186 channel == DEFAULT_CHANNEL or rep << " (#{ channel.to_s })"
202 def to_s method in class:ANTLR3.Token
203 text.to_s
564 name = name.to_s
606 name = name.to_s.freeze
625 token_names[ type_value ] = name.to_s.freeze
636 else const_defined?( name_or_value.to_s )
643 else const_get( name_or_value.to_s ) rescue token_names.index( name_or_value )
dot.rb 66 def to_s method in class:ANTLR3.DOT.Context
114 return tree_template.to_s
tree.rb 124 name = token_name( expected_token_type ).to_s
409 empty? and return to_s
411 buffer << '(' << to_s << ' ' unless flat_list?
440 abstract :to_s
576 def to_s method in class:ANTLR3.CommonTree.infer_boundaries
577 flat_list? ? 'nil' : @token.text.to_s
635 @input.to_s( i, j ) # <- the bad text
637 @input.to_s( @start, @stop ) # <- the bad text
643 def to_s method in class:ANTLR3.CommonTree.CommonErrorNode
861 from_token.text = text.to_s if tex
    [all...]
  /external/webkit/Tools/iExploder/iexploder-1.3.2/htdocs/
iexploder.rb 98 when 12 then return "#" + rand(999999).to_s
99 when 13 then return rand(999999).to_s + "%"
100 when 14..15 then return "&" + rand(999999).to_s + ";"
109 return "-" + rand(999999).to_s
111 return rand(999999).to_s
129 when 17..18 then return "#" + rand(999999999).to_s
130 when 19 then return "-" + rand(99999999).to_s
131 else return rand(99999999).to_s;
276 newpage << "test=" << @test_num.to_s << "&subtest=" << nextSubTestNum().to_s
    [all...]
  /external/antlr/antlr-3.4/runtime/Ruby/test/functional/ast-output/
hetero-nodes.rb 17 def to_s method in class:TestHeterogeneousNodeTypes.V
36 def to_s method in class:TestHeterogeneousNodeTypes.V
55 def to_s method in class:TestHeterogeneousNodeTypes.V
74 def to_s method in class:TestHeterogeneousNodeTypes.V
93 def to_s method in class:TestHeterogeneousNodeTypes.V
113 def to_s method in class:TestHeterogeneousNodeTypes.V
133 def to_s method in class:TestHeterogeneousNodeTypes.V
153 def to_s method in class:TestHeterogeneousNodeTypes.V
173 def to_s method in class:TestHeterogeneousNodeTypes.V
206 def to_s method in class:TestHeterogeneousNodeTypes.V
226 def to_s method in class:TestHeterogeneousNodeTypes.V
247 def to_s method in class:TestHeterogeneousNodeTypes.V
267 def to_s method in class:TestHeterogeneousNodeTypes.V
289 def to_s method in class:TestHeterogeneousNodeTypes.V
298 def to_s method in class:TestHeterogeneousNodeTypes.W
322 def to_s method in class:TestHeterogeneousNodeTypes.V
358 def to_s method in class:TestHeterogeneousNodeTypes.V
363 def to_s method in class:TestHeterogeneousNodeTypes.W
396 def to_s method in class:TestHeterogeneousNodeTypes.V
402 def to_s method in class:TestHeterogeneousNodeTypes.W
436 def to_s method in class:TestHeterogeneousNodeTypes.V
474 def to_s method in class:TestHeterogeneousNodeTypes.V
508 def to_s method in class:TestHeterogeneousNodeTypes.V
550 def to_s method in class:TestHeterogeneousNodeTypes.V
584 def to_s method in class:TestHeterogeneousNodeTypes.V
    [all...]
  /external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/debug/
record-event-listener.rb 20 event_message = event_message.to_s
trace-event-listener.rb 24 event_message = event_message.to_s << "\n"
  /external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/test/
functional.rb 81 if g = grammars[ name.to_s ]
83 grammars.delete( name.to_s )
110 path = local_path( name.to_s )
grammar.rb 28 path = File.expand_path path.to_s
54 path = File.expand_path path.to_s
67 @path = path.to_s
239 token = token.to_s.dup
279 @source = source.to_s.fixed_indent( 0 )
295 previous, @path = @path, v.to_s
core-extensions.rb 6 File.join( self, subpath.to_s )
189 File.expand_path( path.to_s ).split( File::Separator ).tap do |list|
  /external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/streams/
interactive.rb 41 line = line.to_s.encode( Encoding::UTF_8 )
77 @data << line.to_s
rewrite.rb 39 TokenRewriteStream is a specialized form of CommonTokenStream that provides simple stream editing functionality. By creating <i>rewrite programs</i>, new text output can be created based upon the tokens in the stream. The basic token stream itself is preserved, and text output is rendered on demand using the #to_s method.
111 buffer << text.to_s
113 buffer << token.text.to_s if token
146 buffer << text.to_s unless text.nil?
247 prior_operation.text = operation.text << prior_operation.text.to_s
370 else programs[ name.to_s ]
418 when String, Symbol then name = arguments.shift.to_s
  /external/antlr/antlr-3.4/runtime/Ruby/test/functional/token-rewrite/
basic.rb 234 error.to_s.should == %q<operation (replace @ 1..2 : "foo") overlaps with previous operation (replace @ 0..3 : "bar")>
245 error.to_s.should == %q<operation (insert-before @ 4 : "y") overlaps with previous operation (replace @ 2..4 : "x")>
256 error.to_s.should == %q<operation (replace @ 3..5 : "foo") overlaps with previous operation (replace @ 2..4 : "xyz")>
267 error.to_s.should == %q<operation (replace @ 1..3 : "foo") overlaps with previous operation (replace @ 2..4 : "xyz")>
via-parser.rb 41 stat: ID '=' expr ';' {$body::decls << $ID.text.to_s}
  /external/webkit/Tools/iExploder/iexploder-1.7.2/src/
iexploder.rb 218 when 41..60 then return '999999.' + rand(999999999999999999999).to_s
220 when 81..90 then return '-999999.' + rand(999999999999999999999).to_s
231 when 51..65 then return ("&#" + rand(999999).to_s + ";") * rand(@config['max_garbage_text_size'])
235 junk << "\\x" + rand(65535).to_s(16)
256 when 76..85 then return ("&#" + rand(9999999999999).to_s + ";") * rand(@config['max_garbage_text_size'])
570 url << "t=" << test_num.to_s << "&l=test_redirect&z=THE_END"
572 url << "t=" << test_num.to_s << "&s=" << subtest_width.to_s << "_" << subtest_offsets.join(',')
575 url << "t=" << test_num.to_s
581 url << "&x=" << @stop_num.to_s
    [all...]
  /external/antlr/antlr-3.4/runtime/Ruby/test/functional/template-output/
template-output.rb 25 return( out ? out.to_s : out )
57 [<%= @args.join( @op.to_s ) %>]
181 [<%= @args.join( @op.to_s ) %>]
  /external/antlr/antlr-3.4/runtime/Ruby/test/functional/parser/
rule-methods.rb 126 mname = RUBY_VERSION =~ /^1\.9/ ? proc { | n | n.to_sym } : proc { | n | n.to_s }
  /development/tools/findunused/
find_unused_resources.rb 61 def to_s method in class:FilePosition
81 result << matchData[1].to_s

Completed in 608 milliseconds

1 2