MCPcopy Index your code
hub / github.com/witheve/Eve / isContainer

Function isContainer

src/commonmark.js:1994–2012  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

1992"use strict";
1993
1994function isContainer(node) {
1995 switch (node._type) {
1996 case 'document':
1997 case 'block_quote':
1998 case 'list':
1999 case 'item':
2000 case 'paragraph':
2001 case 'heading':
2002 case 'emph':
2003 case 'strong':
2004 case 'link':
2005 case 'image':
2006 case 'custom_inline':
2007 case 'custom_block':
2008 return true;
2009 default:
2010 return false;
2011 }
2012}
2013
2014var resumeAt = function(node, entering) {
2015 this.current = node;

Callers 2

nextFunction · 0.85
commonmark.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected