All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.javascript.jscomp.parsing.ParserConfig.properties Maven / Gradle / Ivy

Go to download

Closure Compiler is a JavaScript optimizing compiler. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls. It is used in many of Google's JavaScript apps, including Gmail, Google Web Search, Google Maps, and Google Docs.

The newest version!
# Copyright 2009 The Closure Compiler Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Configuration options for the Parser.
#
# Allows us to update the allowed JSDoc annotations independently of the
# Compiler binary, so we can add new JSDoc annotations to old binaries.

# A comma-delimited list.
# Some of these are not used by JSCompiler, but appear in third-party JS code.
# http://usejsdoc.org/
# It's not strictly necessary for the natively-supported annotations to be
# listed here, but it's nice to have them all in one place.
jsdoc.annotations =\
    addon,\
    alias,\
    alternateMessageId,\
    animations,\
    appliesMixin,\
    async,\
    augments,\
    author,\
    base,\
    borrows,\
    bug,\
    channel, \
    class,\
    classdesc,\
    closurePrimitive,\
    codepen,\
    collapsibleOrBreakMyCode,\
    config,\
    constructor,\
    constructs,\
    copyright,\
    default,\
    delcall,\
    deltemplate,\
    delegate,\
    demo,\
    deprecated,\
    desc,\
    description,\
    dict,\
    docsNotRequired,\
    docs-private,\
    element,\
    enhance,\
    enhanceable,\
    enum,\
    event,\
    eventOf,\
    eventType,\
    example,\
    exception,\
    exec,\
    export,\
    exportDoc,\
    exportInterface,\
    externs,\
    field,\
    file,\
    fires,\
    function,\
    global,\
    hassoydelcall,\
    hassoydeltemplate,\
    hideconstructor, \
    hidden, \
    id,\
    idGenerator,\
    ignore,\
    inner,\
    instance,\
    jsx,\
    jsxFrag,\
    kind,\
    lends,\
    link,\
    meaning,\
    member,\
    memberOf,\
    memberof,\
    method,\
    methodOf,\
    mixes,\
    mixin,\
    modName,\
    moddedBy,\
    model,\
    modifies,\
    mods,\
    module,\
    multiElement,\
    name,\
    namespace,\
    ngInject,\
    ngdoc,\
    nocompile,\
    nodts,\
    package,\
    param,\
    parent,\
    pintomodule,\
    preserveTry,\
    priority,\
    private,\
    property,\
    propertyOf,\
    protected,\
    provideGoog,\
    pseudoElement,\
    public,\
    pureOrBreakMyCode,\
    readonly,\
    requirecss,\
    requires,\
    requireExtern,\
    restrict,\
    returns,\
    sassGeneratedCssTs,\
    scope,\
    see,\
    since,\
    soyModule,\
    soyTemplate,\
    static,\
    struct,\
    summary,\
    supported,\
    this,\
    throws,\
    todo,\
    transaction,\
    tsweep,\
    tutorial,\
    type,\
    typedef,\
    typeSummary,\
    url,\
    usage,\
    version,\
    virtual,\
    visibility,\
    wizSupportsSymbolicLookup,\
    wizaction,\
    wizcallback

# Comma-delimited list of valid suppressions.
# This should be a subset of the list of DiagnosticGroups.
jsdoc.suppressions =\
    accessControls,\
    checkDebuggerStatement,\
    checkEs5InheritanceCorrectnessConditions,\
    checkPrototypalTypes,\
    checkRegExp,\
    checkTypes,\
    checkVars,\
    closureClassChecks,\
    closureDepMethodUsageChecks,\
    const,\
    constantProperty,\
    dangerousUnrecognizedTypeError,\
    deprecated,\
    duplicate,\
    es5Strict,\
    externsValidation,\
    extraProvide,\
    extraRequire,\
    globalThis,\
    invalidCasts,\
    lateProvide,\
    legacyGoogScopeRequire,\
    lintChecks,\
    lintVarDeclarations,\
    messageConventions,\
    misplacedTypeAnnotation,\
    missingOverride, \
    missingPolyfill, \
    missingProperties,\
    missingProvide,\
    missingRequire,\
    missingReturn,\
    missingSourcesWarnings,\
    moduleLoad,\
    msgDescriptions,\
    nonStandardJsDocs,\
    partialAlias,\
    polymer,\
    reportUnknownTypes,\
    strictCheckTypes,\
    strictMissingProperties,\
    strictModuleDepCheck,\
    strictPrimitiveOperators,\
    suspiciousCode,\
    transitionalSuspiciousCodeWarnings,\
    undefinedNames,\
    undefinedVars,\
    underscore,\
    unknownDefines,\
    untranspilableFeatures,\
    unusedLocalVariables,\
    unusedPrivateMembers,\
    useOfGoogProvide,\
    uselessCode,\
    visibility,\
    with

# A comma-delimited list of valid closure primitive ids.
# This correspond to the ClosurePrimitive enum once normalized (see ClosurePrimitive.fromStringId)
jsdoc.primitives =\
   asserts.fail,\
   asserts.matchesReturn,\
   asserts.truthy,\

# A comma-delimited list of reserved words that we should not rename variables
# to. Used when an extension is released that steps on globals.
# This prevents the compiler from renaming variables to these names, but not
# from allowing externs for these names.
#
# i,j - common loop variables often overwritten by browser extensions
# s – commonly defined by browser extensions when injecting scripts.
# $j,$ - common jquery aliases often overwritten by browser extensions
# o - overwritten by Norton Identity Protection's Chrome extension.
# ga,_gaq - global variable names used by Google Analytics.
# sun,java - May cause issues in older browsers with remnants of Java support.
# XR - extern added by the webXR platform API.
compiler.reserved.vars = i,j,s,$,$j,o,ga,_gaq,sun,XR,java




© 2015 - 2024 Weber Informatics LLC | Privacy Policy