CodeQL library for Go
codeql/go-all 7.2.2 (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.

getLocation

Gets the location of this template statement.

hasLocationInfo

DEPRECATED: Use getLocation() instead.

toString

Gets a textual representation of this statement.

Charpred