Sha256: 416a161d0912ec9aa61f3ff16f78a636b71121d9eed4e3443e30b077b9d73e5b
Contents?: true
Size: 1.28 KB
Versions: 17
Compression:
Stored size: 1.28 KB
Contents
/* * YUI Compressor * http://developer.yahoo.com/yui/compressor/ * Author: Julien Lecomte - http://www.julienlecomte.net/ * Copyright (c) 2011 Yahoo! Inc. All rights reserved. * The copyrights embodied in the content of this file are licensed * by Yahoo! Inc. under the BSD (revised) open source license. */ package com.yahoo.platform.yui.compressor; import org.mozilla.javascript.Token; /** * JavaScriptIdentifier represents a variable/function identifier. */ class JavaScriptIdentifier extends JavaScriptToken { private int refcount = 0; private String mungedValue; private ScriptOrFnScope declaredScope; private boolean markedForMunging = true; JavaScriptIdentifier(String value, ScriptOrFnScope declaredScope) { super(Token.NAME, value); this.declaredScope = declaredScope; } ScriptOrFnScope getDeclaredScope() { return declaredScope; } void setMungedValue(String value) { mungedValue = value; } String getMungedValue() { return mungedValue; } void preventMunging() { markedForMunging = false; } boolean isMarkedForMunging() { return markedForMunging; } void incrementRefcount() { refcount++; } int getRefcount() { return refcount; } }
Version data entries
17 entries across 17 versions & 2 rubygems