Here you can find the source of isPrototypeNameNode(AstNode node)
public static final boolean isPrototypeNameNode(AstNode node)
//package com.java2s; /*/*from www . j a va 2 s . com*/ * 06/05/2014 * * Copyright (C) 2014 Robert Futrell * robert_futrell at users.sourceforge.net * http://fifesoft.com/rsyntaxtextarea * * This library is distributed under a modified BSD license. See the included * RSTALanguageSupport.License.txt file for details. */ import org.mozilla.javascript.ast.AstNode; import org.mozilla.javascript.ast.Name; public class Main { public static final boolean isPrototypeNameNode(AstNode node) { return node instanceof Name && "prototype".equals(((Name) node).getIdentifier()); } }