visitText method

  1. @override
void visitText(
  1. TextAst ast,
  2. CompileElement parent
)
override

Implementation

@override
void visitText(TextAst ast, CompileElement parent) {
  if (_maybeSkipNode(parent, ast.ngContentIndex)) {
    if (ast.value.trim() != '') {
      _deadCodeWarning('Non-empty text node (${ast.value})', ast, parent);
    }
    return;
  }
  _visitText(
    convertToBinding(ast, compileDirectiveMetadata: _view.component),
    parent,
    ast.ngContentIndex,
  );
}