Name Description Size
analyze-input-string.js Analyses a given string to find the last statement that is interesting for later completion. @param string str A string to analyse. @returns object If there was an error in the string detected, then a object like { err: "ErrorMesssage" } is returned, otherwise a object like { state: STATE_NORMAL|STATE_QUOTE|STATE_DQUOTE, lastStatement: the last statement in the string, isElementAccess: boolean that indicates if the lastStatement has an open element access (e.g. `x["match`). isPropertyAccess: boolean indicating if we are accessing property (e.g `true` in `var a = {b: 1};a.b`) matchProp: The part of the expression that should match the properties on the mainExpression (e.g. `que` when expression is `document.body.que`) mainExpression: The part of the expression before any property access, (e.g. `a.b` if expression is `a.b.`) expressionBeforePropertyAccess: The part of the expression before property access (e.g `var a = {b: 1};a` if expression is `var a = {b: 1};a.b`) } 13315
GenerateDataFromWebIdls.py This script parses mozilla-central's WebIDL bindings and writes a JSON-formatted subset of the function bindings to several files: - "devtools/server/actors/webconsole/webidl-pure-allowlist.js" (for eager evaluation processing) - "devtools/server/actors/webconsole/webidl-unsafe-getters-names.js" (for preventing automatically call getters that could emit warnings) Run this script via > ./mach python devtools/shared/webconsole/GenerateDataFromWebIdls.py with a mozconfig that references a built non-artifact build. 5635
GenerateReservedWordsJS.py 1066
js-property-provider.js Provides a list of properties, that are possible matches based on the passed Debugger.Environment/Debugger.Object and inputValue. @param {Object} An object of the following shape: - {Object} dbgObject When the debugger is not paused this Debugger.Object wraps the scope for autocompletion. It is null if the debugger is paused. - {Object} environment When the debugger is paused this Debugger.Environment is the scope for autocompletion. It is null if the debugger is not paused. - {String} inputValue Value that should be completed. - {Number} cursor (defaults to inputValue.length). Optional offset in the input where the cursor is located. If this is omitted then the cursor is assumed to be at the end of the input value. - {Array} authorizedEvaluations (defaults to []). Optional array containing all the different properties access that the engine can execute in order to retrieve its result's properties. ⚠️ This should be set to true *ONLY* on user action as it may cause side-effects in the content page ⚠️ - {WebconsoleActor} webconsoleActor A reference to a webconsole actor which we can use to retrieve the last evaluation result or create a debuggee value. - {String}: selectedNodeActor The actor id of the selected node in the inspector. - {Array<string>}: expressionVars Optional array containing variable defined in the expression. Those variables are extracted from CodeMirror state. @returns null or object If the inputValue is an unsafe getter and invokeUnsafeGetter is false, the following form is returned: { isUnsafeGetter: true, getterPath: {Array<String>} An array of the property chain leading to the getter. Example: ["x", "myGetter"] } If no completion valued could be computed, and the input is not an unsafe getter, null is returned. Otherwise an object with the following form is returned: { matches: Set<string> matchProp: Last part of the inputValue that was used to find the matches-strings. isElementAccess: Boolean set to true if the evaluation is an element access (e.g. `window["addEvent`). } 23856
messages.js Return true if the parameters passed to console.log is supported. The parameters can be either from server side (without getGrip) or client side (with getGrip). @param {Message} parameters @returns {Boolean} 1254
moz.build 1195
parser-helper.js Gets a collection of parser methods for a specified source. @param string source The source text content. @param boolean logExceptions 2189
test