CodeQL library for Go
codeql/go-all 0.7.15-dev (changelog, source)
Search

Class HtmlTemplate::TemplateStmt

A statement inside an HTML template.

Import path

import semmle.go.frameworks.stdlib.HtmlTemplate

Direct supertypes

Fields

Predicates

getBody

Gets the text of the body of the template statement.

getEnclosingTextNode

Get the HTML element that contains this template statement.

getFile

Gets the file in which this statement appears.

hasLocationInfo

Holds if this element is at the specified location. The location spans column startcolumn of line startline to column endcolumn of line endline in file filepath. For more information, see Locations.

toString

Gets a textual representation of this statement.

Charpred