Michael Granger avatar Michael Granger committed ee78d82

Comment out a bunch of debugging in the parser

Comments (0)

Files changed (1)

lib/inversion/parser.rb

 					[ match[0], linenum, colnum ]
 			end
 
-			self.log.debug "  found a tag at offset: %d (%p) (line %d, col %d)" %
-				[ start_pos, abbrevstring(match[0]), linenum, colnum ]
+			# self.log.debug "  found a tag at offset: %d (%p) (line %d, col %d)" %
+			# 	[ start_pos, abbrevstring(match[0]), linenum, colnum ]
 
 			# If there were characters between the end of the last match and
 			# the beginning of the tag, create a text node with them
 				state << Inversion::Template::TextNode.new( text, last_linenum, last_colnum )
 			end
 
-			self.log.debug "  creating tag with tagname: %p, body: %p" %
-				[ match[:tagname], match[:body] ]
+			# self.log.debug "  creating tag with tagname: %p, body: %p" %
+			# 	[ match[:tagname], match[:body] ]
 
 			tag = Inversion::Template::Tag.create( match[:tagname], match[:body], linenum, colnum )
 			if tag.nil?
 			    tag = Inversion::Template::TextNode.new( match[0], linenum, colnum )
 			end
 
-			self.log.debug "  created tag: %p" % [ tag ]
+			# self.log.debug "  created tag: %p" % [ tag ]
 			state << tag
 
 			# Keep offsets for the next match
 		# If there are any characters left over after the last tag
 		remainder = source[ last_pos..-1 ]
 		if remainder && !remainder.empty?
-			self.log.debug "Remainder after last tag: %p" % [ abbrevstring(remainder) ]
+			# self.log.debug "Remainder after last tag: %p" % [ abbrevstring(remainder) ]
 
 			# Detect unclosed tags
 			if remainder.index( "<?" ) || remainder.index( "[?" )
 
 		### Append operator: add nodes to the correct part of the parse tree.
 		def <<( node )
-			self.log.debug "Appending %p" % [ node ]
+			# self.log.debug "Appending %p" % [ node ]
 
 			node.before_appending( self )
 			self.node_stack.last << node
 				raise Inversion::StackError, msg
 			end
 
-			self.log.debug "Include stack is: %p" % [ self.include_stack ]
+			# self.log.debug "Include stack is: %p" % [ self.include_stack ]
 
 			substate = self.dup
 			substate.clear_nodes
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.