Home | History | Annotate | Download | only in src

Lines Matching defs:script

158 var SCRIPT_TYPE = 'script';
372 * Check whether the mirror reflects a script.
373 * @returns {boolean} True if the mirror reflects a script
833 * Returns the script object for the function.
834 * @return {ScriptMirror or undefined} Script object for the function or
835 * undefined if the function has no script
837 FunctionMirror.prototype.script = function() {
838 // Return script if function is resolved. Otherwise just fall through
841 var script = %FunctionGetScript(this.value_);
842 if (script) {
843 return MakeMirror(script);
850 * Returns the script source position for the function. Only makes sense
851 * for functions which has a script defined.
852 * @return {Number or undefined} in-script position for the function
855 // Return script if function is resolved. Otherwise just fall through
864 * Returns the script source location object for the function. Only makes sense
865 * for functions which has a script defined.
866 * @return {Location or undefined} in-script location for the function begin
869 if (this.resolved() && this.script()) {
870 return this.script().locationFromPosition(this.sourcePosition_(),
1532 if (this.func().resolved() && this.func().script()) {
1533 return this.func().script().locationFromPosition(this.sourcePosition(),
1675 if (func.script()) {
1676 if (func.script().name()) {
1677 result += func.script().name();
1801 * Mirror object for script source.
1802 * @param {Script} script The script object
1806 function ScriptMirror(script) {
1808 this.script_ = script;
1809 this.context_ = new ContextMirror(script.context_data);
2070 if (mirror.script()) {
2071 o.scriptId = mirror.script().id();
2164 // Script is represented by id, name and source attributes.
2184 // For compilation type eval emit information on the script from which
2185 // eval was called if a script is present.
2256 if (mirror.script()) {
2257 content.script = this.serializeReference(mirror.script());
2258 content.scriptId = mirror.script().id();
2361 if (func.script()) {
2362 content.script = this.serializeReference(func.script());