Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for consumeComment (0.15 sec)

  1. src/go/printer/testdata/parser.go

    		default:
    			p.printTrace(s)
    		}
    	}
    
    	p.pos, p.tok, p.lit = p.scanner.Scan()
    }
    
    // Consume a comment and return it and the line on which it ends.
    func (p *parser) consumeComment() (comment *ast.Comment, endline int) {
    	// /*-style comments may end on a different line than where they start.
    	// Scan the comment for '\n' chars and adjust endline accordingly.
    	endline = p.file.Line(p.pos)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  2. src/go/parser/parser.go

    			}
    		} else {
    			// Found a non-comment; top of file is over.
    			p.top = false
    		}
    		break
    	}
    }
    
    // Consume a comment and return it and the line on which it ends.
    func (p *parser) consumeComment() (comment *ast.Comment, endline int) {
    	// /*-style comments may end on a different line than where they start.
    	// Scan the comment for '\n' chars and adjust endline accordingly.
    	endline = p.file.Line(p.pos)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
Back to top