Преглед изворни кода

Documentation: fix @property tag with @type.

Maciej Gołaszewski пре 9 година
родитељ
комит
a4edc537e1
39 измењених фајлова са 117 додато и 118 уклоњено
  1. 2 2
      packages/ckeditor5-engine/src/ckeditor.js
  2. 1 1
      packages/ckeditor5-engine/src/ckeditorerror.js
  3. 3 3
      packages/ckeditor5-engine/src/collection.js
  4. 1 1
      packages/ckeditor5-engine/src/creator.js
  5. 1 1
      packages/ckeditor5-engine/src/dataprocessor/htmldataprocessor.js
  6. 3 3
      packages/ckeditor5-engine/src/editable/editable.js
  7. 1 1
      packages/ckeditor5-engine/src/editable/editableview.js
  8. 4 4
      packages/ckeditor5-engine/src/editor.js
  9. 1 1
      packages/ckeditor5-engine/src/editorui.js
  10. 3 3
      packages/ckeditor5-engine/src/observablemixin.js
  11. 2 2
      packages/ckeditor5-engine/src/plugin.js
  12. 2 2
      packages/ckeditor5-engine/src/plugincollection.js
  13. 3 3
      packages/ckeditor5-engine/src/treemodel/characterproxy.js
  14. 5 5
      packages/ckeditor5-engine/src/treemodel/document.js
  15. 2 2
      packages/ckeditor5-engine/src/treemodel/element.js
  16. 6 6
      packages/ckeditor5-engine/src/treemodel/node.js
  17. 3 3
      packages/ckeditor5-engine/src/treemodel/nodelist.js
  18. 3 3
      packages/ckeditor5-engine/src/treemodel/operation/attributeoperation.js
  19. 3 3
      packages/ckeditor5-engine/src/treemodel/operation/operation.js
  20. 3 3
      packages/ckeditor5-engine/src/treemodel/position.js
  21. 4 4
      packages/ckeditor5-engine/src/treemodel/range.js
  22. 2 2
      packages/ckeditor5-engine/src/treemodel/rootelement.js
  23. 7 7
      packages/ckeditor5-engine/src/treemodel/selection.js
  24. 2 2
      packages/ckeditor5-engine/src/treemodel/text.js
  25. 4 4
      packages/ckeditor5-engine/src/treemodel/textfragment.js
  26. 6 6
      packages/ckeditor5-engine/src/treemodel/treewalker.js
  27. 3 3
      packages/ckeditor5-engine/src/treeview/element.js
  28. 1 1
      packages/ckeditor5-engine/src/treeview/node.js
  29. 6 6
      packages/ckeditor5-engine/src/treeview/observer/mutationobserver.js
  30. 2 2
      packages/ckeditor5-engine/src/treeview/position.js
  31. 4 4
      packages/ckeditor5-engine/src/treeview/renderer.js
  32. 2 3
      packages/ckeditor5-engine/src/treeview/text.js
  33. 5 5
      packages/ckeditor5-engine/src/treeview/treeview.js
  34. 4 4
      packages/ckeditor5-engine/src/ui/controller.js
  35. 2 2
      packages/ckeditor5-engine/src/ui/controllercollection.js
  36. 1 1
      packages/ckeditor5-engine/src/ui/domemittermixin.js
  37. 3 3
      packages/ckeditor5-engine/src/ui/region.js
  38. 1 1
      packages/ckeditor5-engine/src/ui/template.js
  39. 6 6
      packages/ckeditor5-engine/src/ui/view.js

+ 2 - 2
packages/ckeditor5-engine/src/ckeditor.js

@@ -21,7 +21,7 @@ const CKEDITOR = {
 	 * A collection containing all editor instances created.
 	 *
 	 * @readonly
-	 * @property {Collection}
+	 * @type {Collection}
 	 */
 	instances: new Collection(),
 
@@ -79,4 +79,4 @@ const CKEDITOR = {
 	config: new Config()
 };
 
-export default CKEDITOR;
+export default CKEDITOR;

+ 1 - 1
packages/ckeditor5-engine/src/ckeditorerror.js

@@ -43,7 +43,7 @@ export default class CKEditorError extends Error {
 		/**
 		 * The additional error data passed to the constructor.
 		 *
-		 * @property {Object} data
+		 * @type {Object}
 		 */
 		this.data = data;
 	}

+ 3 - 3
packages/ckeditor5-engine/src/collection.js

@@ -37,7 +37,7 @@ export default class Collection {
 		 * The internal list of items in the collection.
 		 *
 		 * @private
-		 * @property {Object[]}
+		 * @type {Object[]}
 		 */
 		this._items = [];
 
@@ -45,7 +45,7 @@ export default class Collection {
 		 * The internal map of items in the collection.
 		 *
 		 * @private
-		 * @property {Map}
+		 * @type {Map}
 		 */
 		this._itemMap = new Map();
 
@@ -53,7 +53,7 @@ export default class Collection {
 		 * The name of the property which is considered to identify an item.
 		 *
 		 * @private
-		 * @property {String}
+		 * @type {String}
 		 */
 		this._idProperty = options && options.idProperty || 'id';
 	}

+ 1 - 1
packages/ckeditor5-engine/src/creator.js

@@ -19,7 +19,7 @@ export default class Creator extends Plugin {
 	 * The element used to {@link #_replaceElement replace} the editor element.
 	 *
 	 * @private
-	 * @property {HTMLElement} _elementReplacemenet
+	 * @type {HTMLElement}
 	 */
 
 	/**

+ 1 - 1
packages/ckeditor5-engine/src/dataprocessor/htmldataprocessor.js

@@ -25,7 +25,7 @@ export default class HtmlDataProcessor {
 		 * DOMParser instance used to parse HTML string to HTMLDocument.
 		 *
 		 * @private
-		 * @property {DOMParser}
+		 * @type {DOMParser}
 		 */
 		this._domParser = new DOMParser();
 

+ 3 - 3
packages/ckeditor5-engine/src/editable/editable.js

@@ -29,7 +29,7 @@ export default class Editable extends Controller {
 		/**
 		 * Whether the editable is in read-write or read-only mode.
 		 *
-		 * @property {Boolean} isEditable
+		 * @type {Boolean}
 		 */
 		this.set( 'isEditable', true );
 
@@ -37,7 +37,7 @@ export default class Editable extends Controller {
 		 * Whether the editable is focused.
 		 *
 		 * @readonly
-		 * @property {Boolean} isFocused
+		 * @type {Boolean}
 		 */
 		this.set( 'isFocused', false );
 
@@ -50,7 +50,7 @@ export default class Editable extends Controller {
 	 * The model for the editable view.
 	 *
 	 * @readonly
-	 * @property {core.ui.Model} viewModel
+	 * @type {core.ui.Model}
 	 */
 	get viewModel() {
 		if ( this._viewModel ) {

+ 1 - 1
packages/ckeditor5-engine/src/editable/editableview.js

@@ -13,7 +13,7 @@ export default class EditableView extends View {
 	 * The element which is the main editable element (usually the one with `contentEditable="true"`).
 	 *
 	 * @readonly
-	 * @property {HTMLElement} editableElement
+	 * @type {HTMLElement}
 	 */
 
 	setEditableElement( editableElement ) {

+ 4 - 4
packages/ckeditor5-engine/src/editor.js

@@ -35,7 +35,7 @@ export default class Editor {
 		 * editor creation and is not subject to be modified.
 		 *
 		 * @readonly
-		 * @property {HTMLElement}
+		 * @type {HTMLElement}
 		 */
 		this.element = element;
 
@@ -47,7 +47,7 @@ export default class Editor {
 		 * instance itself.
 		 *
 		 * @readonly
-		 * @property {Config}
+		 * @type {Config}
 		 */
 		this.config = new EditorConfig( config );
 
@@ -55,7 +55,7 @@ export default class Editor {
 		 * The plugins loaded and in use by this editor instance.
 		 *
 		 * @readonly
-		 * @property {PluginCollection}
+		 * @type {PluginCollection}
 		 */
 		this.plugins = new PluginCollection( this );
 
@@ -63,7 +63,7 @@ export default class Editor {
 		 * The chosen creator.
 		 *
 		 * @protected
-		 * @property {Creator} _creator
+		 * @type {Creator}
 		 */
 	}
 

+ 1 - 1
packages/ckeditor5-engine/src/editorui.js

@@ -23,7 +23,7 @@ export default class EditorUI extends Controller {
 
 		/**
 		 * @readonly
-		 * @property {core.Editor}
+		 * @type {core.Editor}
 		 */
 		this.editor = editor;
 	}

+ 3 - 3
packages/ckeditor5-engine/src/observablemixin.js

@@ -262,7 +262,7 @@ function initObservable( observable ) {
 	// The internal hash containing the observable's state.
 	//
 	// @private
-	// @property {Map} _attributes
+	// @type {Map}
 	Object.defineProperty( observable, attributesSymbol, {
 		value: new Map()
 	} );
@@ -311,7 +311,7 @@ function initObservable( observable ) {
 	//			} )
 	//
 	// @private
-	// @property {Map} _boundObservables
+	// @type {Map}
 	Object.defineProperty( observable, boundObservablesSymbol, {
 		value: new Map()
 	} );
@@ -341,7 +341,7 @@ function initObservable( observable ) {
 	//			} )
 	//
 	// @private
-	// @property {Map} _boundAttributes
+	// @type {Map}
 	Object.defineProperty( observable, boundAttributesSymbol, {
 		value: new Map()
 	} );

+ 2 - 2
packages/ckeditor5-engine/src/plugin.js

@@ -24,7 +24,7 @@ export default class Plugin {
 	constructor( editor ) {
 		/**
 		 * @readonly
-		 * @property {core.Editor}
+		 * @type {core.Editor}
 		 */
 		this.editor = editor;
 	}
@@ -43,7 +43,7 @@ export default class Plugin {
 	 *		}
 	 *
 	 * @static
-	 * @property {Function[]} requires
+	 * @type {Function[]}
 	 */
 
 	/**

+ 2 - 2
packages/ckeditor5-engine/src/plugincollection.js

@@ -26,13 +26,13 @@ export default class PluginCollection {
 	constructor( editor ) {
 		/**
 		 * @protected
-		 * @property {core.Editor}
+		 * @type {core.Editor}
 		 */
 		this._editor = editor;
 
 		/**
 		 * @protected
-		 * @property {Map}
+		 * @type {Map}
 		 */
 		this._plugins = new Map();
 	}

+ 3 - 3
packages/ckeditor5-engine/src/treemodel/characterproxy.js

@@ -42,7 +42,7 @@ export default class CharacterProxy extends Node {
 		 *
 		 * @protected
 		 * @readonly
-		 * @property {treeModel.NodeListText} nodeListText
+		 * @type {treeModel.NodeListText}
 		 */
 		this._nodeListText = nodeListText;
 
@@ -51,7 +51,7 @@ export default class CharacterProxy extends Node {
 		 *
 		 * @protected
 		 * @readonly
-		 * @property {Number} index
+		 * @type {Number}
 		 */
 		this._index = index;
 
@@ -60,7 +60,7 @@ export default class CharacterProxy extends Node {
 		 *
 		 * @protected
 		 * @readonly
-		 * @property {String} character
+		 * @type {String}
 		 */
 		this.character = nodeListText.text.substr( index, 1 );
 

+ 5 - 5
packages/ckeditor5-engine/src/treemodel/document.js

@@ -38,7 +38,7 @@ export default class Document {
 		 * List of roots that are owned and managed by this document.
 		 *
 		 * @readonly
-		 * @property {Map} roots
+		 * @type {Map}
 		 */
 		this.roots = new Map();
 
@@ -48,7 +48,7 @@ export default class Document {
 		 * not match document version the {@link document-applyOperation-wrong-version} error is thrown.
 		 *
 		 * @readonly
-		 * @property {Number} version
+		 * @type {Number}
 		 */
 		this.version = 0;
 
@@ -59,7 +59,7 @@ export default class Document {
 		 * Array of pending changes. See: {@link #enqueueChanges}.
 		 *
 		 * @private
-		 * @property {Array.<Function>}
+		 * @type {Array.<Function>}
 		 */
 		this._pendingChanges = [];
 
@@ -67,7 +67,7 @@ export default class Document {
 		 * Selection done on this document.
 		 *
 		 * @readonly
-		 * @property {treeModel.Selection}
+		 * @type {treeModel.Selection}
 		 */
 		this.selection = new Selection();
 	}
@@ -76,7 +76,7 @@ export default class Document {
 	 * Graveyard tree root. Document always have a graveyard root, which stores removed nodes.
 	 *
 	 * @readonly
-	 * @property {treeModel.RootElement} graveyard
+	 * @type {treeModel.RootElement}
 	 */
 	get graveyard() {
 		return this.getRoot( graveyardSymbol );

+ 2 - 2
packages/ckeditor5-engine/src/treemodel/element.js

@@ -31,7 +31,7 @@ export default class Element extends Node {
 		 * Element name.
 		 *
 		 * @readonly
-		 * @property {String} name
+		 * @type {String}
 		 */
 		this.name = name;
 
@@ -39,7 +39,7 @@ export default class Element extends Node {
 		 * List of children nodes.
 		 *
 		 * @protected
-		 * @property {treeModel.NodeList} _children
+		 * @type {treeModel.NodeList}
 		 */
 		this._children = new NodeList();
 

+ 6 - 6
packages/ckeditor5-engine/src/treemodel/node.js

@@ -29,7 +29,7 @@ export default class Node {
 		 * Parent element. Null by default. Set by {@link treeModel.Element#insertChildren}.
 		 *
 		 * @readonly
-		 * @property {treeModel.Element|null} parent
+		 * @type {treeModel.Element|null}
 		 */
 		this.parent = null;
 
@@ -40,7 +40,7 @@ export default class Node {
 		 * using {@link treeModel.Node} methods.
 		 *
 		 * @protected
-		 * @property {Map} _attrs
+		 * @type {Map}
 		 */
 		this._attrs = utils.toMap( attrs );
 	}
@@ -49,7 +49,7 @@ export default class Node {
 	 * Depth of the node, which equals to total number of its parents.
 	 *
 	 * @readonly
-	 * @property {Number} depth
+	 * @type {Number}
 	 */
 	get depth() {
 		let depth = 0;
@@ -68,7 +68,7 @@ export default class Node {
 	 * Nodes next sibling or `null` if it is the last child.
 	 *
 	 * @readonly
-	 * @property {treeModel.Node|null} nextSibling
+	 * @type {treeModel.Node|null}
 	 */
 	get nextSibling() {
 		const index = this.getIndex();
@@ -80,7 +80,7 @@ export default class Node {
 	 * Nodes previous sibling or null if it is the last child.
 	 *
 	 * @readonly
-	 * @property {treeModel.Node|null} previousSibling
+	 * @type {treeModel.Node|null}
 	 */
 	get previousSibling() {
 		const index = this.getIndex();
@@ -92,7 +92,7 @@ export default class Node {
 	 * The top parent for the node. If node has no parent it is the root itself.
 	 *
 	 * @readonly
-	 * @property {Number} depth
+	 * @type {Number}
 	 */
 	get root() {
 		let root = this;

+ 3 - 3
packages/ckeditor5-engine/src/treemodel/nodelist.js

@@ -121,7 +121,7 @@ export default class NodeList {
 		 * Internal array to store nodes.
 		 *
 		 * @protected
-		 * @property {Array}
+		 * @type {Array}
 		 */
 		this._nodes = [];
 
@@ -131,7 +131,7 @@ export default class NodeList {
 		 * which occupy multiple slots in `_indexMap`.
 		 *
 		 * @private
-		 * @property {Array}
+		 * @type {Array}
 		 */
 		this._indexMap = [];
 
@@ -184,7 +184,7 @@ export default class NodeList {
 	 * Number of nodes in the node list.
 	 *
 	 * @readonly
-	 * @property {Number} length
+	 * @type {Number}
 	 */
 	get length() {
 		return this._indexMap.length;

+ 3 - 3
packages/ckeditor5-engine/src/treemodel/operation/attributeoperation.js

@@ -50,7 +50,7 @@ export default class AttributeOperation extends Operation {
 		 * Key of an attribute to change or remove.
 		 *
 		 * @readonly
-		 * @property {String} key
+		 * @type {String}
 		 */
 		this.key = key;
 
@@ -58,7 +58,7 @@ export default class AttributeOperation extends Operation {
 		 * Old value of the attribute with given key or `null` if adding a new attribute.
 		 *
 		 * @readonly
-		 * @property {*} oldValue
+		 * @type {*}
 		 */
 		this.oldValue = oldValue;
 
@@ -66,7 +66,7 @@ export default class AttributeOperation extends Operation {
 		 * New value to set for the attribute. If `null`, then the operation just removes the attribute.
 		 *
 		 * @readonly
-		 * @property {*} newValue
+		 * @type {*}
 		 */
 		this.newValue = newValue;
 	}

+ 3 - 3
packages/ckeditor5-engine/src/treemodel/operation/operation.js

@@ -25,14 +25,14 @@ export default class Operation {
 		 * {@link treeModel.Document#version document version} the {@link document-applyOperation-wrong-version}
 		 * error is thrown.
 		 *
-		 * @property {Number}
+		 * @type {Number}
 		 */
 		this.baseVersion = baseVersion;
 
 		/**
 		 * Operation type.
 		 *
-		 * @property {String} type
+		 * @type {String}
 		 */
 
 		/**
@@ -40,7 +40,7 @@ export default class Operation {
 		 * {@link treeModel.Delta delta} when the operations is added to it by the
 		 * {@link treeModel.Delta#addOperation} method.
 		 *
-		 * @property {treeModel.Delta} delta
+		 * @type {treeModel.Delta}
 		 */
 
 		/**

+ 3 - 3
packages/ckeditor5-engine/src/treemodel/position.js

@@ -83,7 +83,7 @@ export default class Position {
 	 * Node directly after the position.
 	 *
 	 * @readonly
-	 * @property {treeModel.Node}
+	 * @type {treeModel.Node}
 	 */
 	get nodeAfter() {
 		return this.parent.getChild( this.offset ) || null;
@@ -103,7 +103,7 @@ export default class Position {
 	 * Offset at which the position is located in the {@link #parent}.
 	 *
 	 * @readonly
-	 * @property {Number} offset
+	 * @type {Number}
 	 */
 	get offset() {
 		return last( this.path );
@@ -120,7 +120,7 @@ export default class Position {
 	 * Parent element of the position. The position is located at {@link #offset} in this element.
 	 *
 	 * @readonly
-	 * @property {treeModel.Element} parent
+	 * @type {treeModel.Element}
 	 */
 	get parent() {
 		let parent = this.root;

+ 4 - 4
packages/ckeditor5-engine/src/treemodel/range.js

@@ -27,14 +27,14 @@ export default class Range {
 		/**
 		 * Start position.
 		 *
-		 * @property {treeModel.Position}
+		 * @type {treeModel.Position}
 		 */
 		this.start = Position.createFromPosition( start );
 
 		/**
 		 * End position.
 		 *
-		 * @property {treeModel.Position}
+		 * @type {treeModel.Position}
 		 */
 		this.end = Position.createFromPosition( end );
 	}
@@ -42,7 +42,7 @@ export default class Range {
 	/**
 	 * Returns whether the range is collapsed, that is it start and end positions are equal.
 	 *
-	 * @property {Boolean}
+	 * @type {Boolean}
 	 */
 	get isCollapsed() {
 		return this.start.isEqual( this.end );
@@ -60,7 +60,7 @@ export default class Range {
 	/**
 	 * Range root element. Equals to the root of start position (which should be same as root of end position).
 	 *
-	 * @property {treeModel.RootElement}
+	 * @type {treeModel.RootElement}
 	 */
 	get root() {
 		return this.start.root;

+ 2 - 2
packages/ckeditor5-engine/src/treemodel/rootelement.js

@@ -26,8 +26,8 @@ export default class RootElement extends Element {
 		 * {@link treeModel.Document} that is an owner of this root.
 		 *
 		 * @readonly
-		 * @property {treeModel.Document}
+		 * @type {treeModel.Document}
 		 */
 		this.document = doc;
 	}
-}
+}

+ 7 - 7
packages/ckeditor5-engine/src/treemodel/selection.js

@@ -27,7 +27,7 @@ export default class Selection {
 		 * List of attributes set on current selection.
 		 *
 		 * @protected
-		 * @property {Map}
+		 * @type {Map}
 		 */
 		this._attrs = new Map();
 
@@ -35,7 +35,7 @@ export default class Selection {
 		 * Stores all ranges that are selected.
 		 *
 		 * @private
-		 * @property {Array.<LiveRange>}
+		 * @type {Array.<LiveRange>}
 		 */
 		this._ranges = [];
 
@@ -43,7 +43,7 @@ export default class Selection {
 		 * Specifies whether the last added range was added as a backward or forward range.
 		 *
 		 * @private
-		 * @property {Boolean}
+		 * @type {Boolean}
 		 */
 		this._lastRangeBackward = false;
 	}
@@ -55,7 +55,7 @@ export default class Selection {
 	 * Anchor is always a start or end of the most recent added range. It may be a bit unintuitive when
 	 * there are multiple ranges in selection.
 	 *
-	 * @property {treeModel.LivePosition|null}
+	 * @type {treeModel.LivePosition|null}
 	 */
 	get anchor() {
 		if ( this._ranges.length > 0 ) {
@@ -71,8 +71,8 @@ export default class Selection {
 	 * Selection focus. Focus is a position where the selection ends. When there are no ranges in selection,
 	 * focus is null.
 	 *
-	 * @see {#anchor}
-	 * @property {treeModel.LivePosition|null}
+	 * @link {#anchor}
+	 * @type {treeModel.LivePosition|null}
 	 */
 	get focus() {
 		if ( this._ranges.length > 0 ) {
@@ -87,7 +87,7 @@ export default class Selection {
 	/**
 	 * Returns whether the selection is collapsed. Selection is collapsed when all it's ranges are collapsed.
 	 *
-	 * @property {Boolean}
+	 * @type {Boolean}
 	 */
 	get isCollapsed() {
 		for ( let i = 0; i < this._ranges.length; i++ ) {

+ 2 - 2
packages/ckeditor5-engine/src/treemodel/text.js

@@ -28,7 +28,7 @@ export default class Text {
 		 * Text.
 		 *
 		 * @readonly
-		 * @property {String}
+		 * @type {String}
 		 */
 		this.text = text || '';
 
@@ -36,7 +36,7 @@ export default class Text {
 		 * List of attributes bound with the text.
 		 *
 		 * @protected
-		 * @property {Map}
+		 * @type {Map}
 		 */
 		this._attrs = utils.toMap( attrs );
 	}

+ 4 - 4
packages/ckeditor5-engine/src/treemodel/textfragment.js

@@ -33,7 +33,7 @@ export default class TextFragment {
 		 * First character node contained in {@link treeModel.TextFragment}.
 		 *
 		 * @readonly
-		 * @property {treeModel.CharacterProxy} first
+		 * @type {treeModel.CharacterProxy}
 		 */
 		this.first = firstCharacter;
 
@@ -41,7 +41,7 @@ export default class TextFragment {
 		 * Characters contained in {@link treeModel.TextFragment}.
 		 *
 		 * @readonly
-		 * @property {String} text
+		 * @type {String}
 		 */
 		this.text = firstCharacter._nodeListText.text.substr( this.first._index, length );
 
@@ -49,7 +49,7 @@ export default class TextFragment {
 		 * Last {@link treeModel.CharacterProxy character node} contained in {@link treeModel.TextFragment}.
 		 *
 		 * @readonly
-		 * @property {treeModel.CharacterProxy} last
+		 * @type {treeModel.CharacterProxy}
 		 */
 		this.last = this.getCharAt( this.text.length - 1 );
 	}
@@ -57,7 +57,7 @@ export default class TextFragment {
 	/**
 	 * A common parent of all character nodes contained in {@link treeModel.TextFragment}.
 	 *
-	 * @property {treeModel.Element} commonParent
+	 * @type {treeModel.Element}
 	 */
 	get commonParent() {
 		return this.first.parent;

+ 6 - 6
packages/ckeditor5-engine/src/treemodel/treewalker.js

@@ -63,7 +63,7 @@ export default class TreeWalker {
 		 *
 		 * If boundaries are not defined they are set before first and after last child of the root node.
 		 *
-		 * @property {treeModel.Range} boundaries
+		 * @type {treeModel.Range}
 		 */
 		this.boundaries = options.boundaries || null;
 
@@ -71,7 +71,7 @@ export default class TreeWalker {
 		 * Start boundary cached for optimization purposes.
 		 *
 		 * @private
-		 * @property {treeModel.Element} boundaryStartParent
+		 * @type {treeModel.Element}
 		 */
 		this._boundaryStartParent = this.boundaries ? this.boundaries.start.parent : null;
 
@@ -79,7 +79,7 @@ export default class TreeWalker {
 		 * End boundary cached for optimization purposes.
 		 *
 		 * @private
-		 * @property {treeModel.Element} boundaryEndParent
+		 * @type {treeModel.Element}
 		 */
 		this._boundaryEndParent = this.boundaries ? this.boundaries.end.parent : null;
 
@@ -87,7 +87,7 @@ export default class TreeWalker {
 		 * Iterator position. This is alway static position, even if the initial position was a
 		 * {@link treeModel.LivePosition live position}.
 		 *
-		 * @property {treeModel.Position} position
+		 * @type {treeModel.Position}
 		 */
 		this.position = options.position ?
 			Position.createFromPosition( options.position ) :
@@ -97,7 +97,7 @@ export default class TreeWalker {
 		 * Flag indicating whether all consecutive characters with the same attributes should be
 		 * returned as one {@link treeModel.CharacterProxy} (`true`) or one by one (`false`).
 		 *
-		 * @property {Boolean} mergeCharacters
+		 * @type {Boolean}
 		 */
 		this.mergeCharacters = !!options.mergeCharacters;
 
@@ -105,7 +105,7 @@ export default class TreeWalker {
 		 * Parent of the most recently visited node. Cached for optimization purposes.
 		 *
 		 * @private
-		 * @property {treeModel.Element} visitedParent
+		 * @type {treeModel.Element}
 		 */
 		this._visitedParent = this.position.parent;
 	}

+ 3 - 3
packages/ckeditor5-engine/src/treeview/element.js

@@ -36,7 +36,7 @@ export default class Element extends Node {
 		 * Name of the element.
 		 *
 		 * @readonly
-		 * @property {String}
+		 * @type {String}
 		 */
 		this.name = name;
 
@@ -44,7 +44,7 @@ export default class Element extends Node {
 		 * Map of attributes, where attributes names are keys and attributes values are values.
 		 *
 		 * @protected
-		 * @property {Map} _attrs
+		 * @type {Map}
 		 */
 		if ( isPlainObject( attrs ) ) {
 			this._attrs = utils.objectToMap( attrs );
@@ -56,7 +56,7 @@ export default class Element extends Node {
 		 * Array of child nodes.
 		 *
 		 * @protected
-		 * @property {Array.<treeView.Node>}
+		 * @type {Array.<treeView.Node>}
 		 */
 		this._children = [];
 

+ 1 - 1
packages/ckeditor5-engine/src/treeview/node.js

@@ -28,7 +28,7 @@ export default class Node {
 		 * Parent element. Null by default. Set by {@link treeView.Element#insertChildren}.
 		 *
 		 * @readonly
-		 * @property {treeView.Element|null} parent
+		 * @type {treeView.Element|null}
 		 */
 		this.parent = null;
 

+ 6 - 6
packages/ckeditor5-engine/src/treeview/observer/mutationobserver.js

@@ -34,7 +34,7 @@ export default class MutationObserver extends Observer {
 		 * Native mutation observer config.
 		 *
 		 * @private
-		 * @property {Object}
+		 * @type {Object}
 		 */
 		this._config = {
 			childList: true,
@@ -49,28 +49,28 @@ export default class MutationObserver extends Observer {
 		/**
 		 * Reference to the {@link treeView.TreeView} object.
 		 *
-		 * @property {treeView.TreeView}
+		 * @type {treeView.TreeView}
 		 */
 		this.treeView = treeView;
 
 		/**
 		 * Reference to the {@link treeView.TreeView#domRoot}.
 		 *
-		 * @property {HTMLElement}
+		 * @type {HTMLElement}
 		 */
 		this.domRoot = treeView.domRoot;
 
 		/**
 		 * Reference to the {@link treeView.TreeView#converter}.
 		 *
-		 * @property {treeView.Converter}
+		 * @type {treeView.Converter}
 		 */
 		this.converter = treeView.converter;
 
 		/**
 		 * Reference to the {@link treeView.TreeView#renderer}.
 		 *
-		 * @property {treeView.Renderer}
+		 * @type {treeView.Renderer}
 		 */
 		this.renderer = treeView.renderer;
 
@@ -78,7 +78,7 @@ export default class MutationObserver extends Observer {
 		 * Native mutation observer.
 		 *
 		 * @private
-		 * @property {window.MutationObserver}
+		 * @type {window.MutationObserver}
 		 */
 		this._mutationObserver = new window.MutationObserver( this._onMutations.bind( this ) );
 	}

+ 2 - 2
packages/ckeditor5-engine/src/treeview/position.js

@@ -22,14 +22,14 @@
 		/**
 		 * Position parent element.
 		 *
-		 * @property {treeView.Element}
+		 * @type {treeView.Element}
 		 */
 		this.parent = parent;
 
 		/**
 		 * Position offset.
 		 *
-		 * @property {Number}
+		 * @type {Number}
 		 */
 		this.offset = offset;
 	}

+ 4 - 4
packages/ckeditor5-engine/src/treeview/renderer.js

@@ -29,7 +29,7 @@ export default class Renderer {
 		 * Converter instance.
 		 *
 		 * @readonly
-		 * @property {treeView.Converter}
+		 * @type {treeView.Converter}
 		 */
 		this.converter = converter;
 
@@ -37,7 +37,7 @@ export default class Renderer {
 		 * Set of nodes which attributes changed and may need to be rendered.
 		 *
 		 * @readonly
-		 * @property {Set.<treeView.Node>}
+		 * @type {Set.<treeView.Node>}
 		 */
 		this.markedAttributes = new Set();
 
@@ -45,7 +45,7 @@ export default class Renderer {
 		 * Set of elements which child lists changed and may need to be rendered.
 		 *
 		 * @readonly
-		 * @property {Set.<treeView.Node>}
+		 * @type {Set.<treeView.Node>}
 		 */
 		this.markedChildren = new Set();
 
@@ -53,7 +53,7 @@ export default class Renderer {
 		 * Set of text nodes which text data changed and may need to be rendered.
 		 *
 		 * @readonly
-		 * @property {Set.<treeView.Node>}
+		 * @type {Set.<treeView.Node>}
 		 */
 		this.markedTexts = new Set();
 	}

+ 2 - 3
packages/ckeditor5-engine/src/treeview/text.js

@@ -11,6 +11,7 @@ import Node from './node.js';
  * Tree view text node.
  *
  * @class treeView.Text
+ * @property {String} _data
  */
 export default class Text extends Node {
 	/**
@@ -26,7 +27,7 @@ export default class Text extends Node {
 		 * The text content.
 		 *
 		 * @private
-		 * @property {String}
+		 * @type {String}
 		 */
 		this._data = data;
 	}
@@ -35,8 +36,6 @@ export default class Text extends Node {
 	 * The text content.
 	 *
 	 * Setting the data fires the {@link treeView.Node#change change event}.
-	 *
-	 * @property {String} Text data.
 	 */
 	get data() {
 		return this._data;

+ 5 - 5
packages/ckeditor5-engine/src/treeview/treeview.js

@@ -37,14 +37,14 @@ export default class TreeView {
 		/**
 		 * Root of the DOM tree.
 		 *
-		 * @property {HTMLElement}
+		 * @type {HTMLElement}
 		 */
 		this.domRoot = domRoot;
 
 		/**
 		 * Set of {@link treeView.Observer observers}.
 		 *
-		 * @property {Set.<treeView.Observer>}
+		 * @type {Set.<treeView.Observer>}
 		 */
 		this.observers = new Set();
 
@@ -52,14 +52,14 @@ export default class TreeView {
 		 * Instance of the {@link treeView.Converter converter} use by {@link treeView.TreeView#renderer renderer} and
 		 * {@link treeView.TreeView#observers observers}.
 		 *
-		 * @property {treeView.Converter}
+		 * @type {treeView.Converter}
 		 */
 		this.converter = new Converter();
 
 		/**
 		 * Root of the view tree.
 		 *
-		 * @property {treeView.Element}
+		 * @type {treeView.Element}
 		 */
 		this.viewRoot = this.converter.domToView( domRoot, { bind: true, withChildren: false } );
 		this.viewRoot.setTreeView( this );
@@ -67,7 +67,7 @@ export default class TreeView {
 		/**
 		 * Instance of the {@link treeView.TreeView#renderer renderer}.
 		 *
-		 * @property {treeView.Renderer}
+		 * @type {treeView.Renderer}
 		 */
 		this.renderer = new Renderer( this.converter );
 		this.renderer.markToSync( 'CHILDREN', this.viewRoot );

+ 4 - 4
packages/ckeditor5-engine/src/ui/controller.js

@@ -29,21 +29,21 @@ export default class Controller {
 		/**
 		 * Model of this controller.
 		 *
-		 * @property {Model}
+		 * @type {Model}
 		 */
 		this.model = model || null;
 
 		/**
 		 * Set `true` after {@link #init}.
 		 *
-		 * @property {Boolean}
+		 * @type {Boolean}
 		 */
 		this.ready = false;
 
 		/**
 		 * View of this controller.
 		 *
-		 * @property {View}
+		 * @type {View}
 		 */
 		this.view = view || null;
 
@@ -51,7 +51,7 @@ export default class Controller {
 		 * A collection of {@link ControllerCollection} instances containing
 		 * child controllers.
 		 *
-		 * @property {Collection}
+		 * @type {Collection}
 		 */
 		this.collections = new Collection( {
 			idProperty: 'name'

+ 2 - 2
packages/ckeditor5-engine/src/ui/controllercollection.js

@@ -35,14 +35,14 @@ export default class ControllerCollection extends Collection {
 		/**
 		 * Name of this collection.
 		 *
-		 * @property {String}
+		 * @type {String}
 		 */
 		this.name = name;
 
 		/**
 		 * Parent controller of this collection.
 		 *
-		 * @property {Controller}
+		 * @type {Controller}
 		 */
 		this.parent = null;
 	}

+ 1 - 1
packages/ckeditor5-engine/src/ui/domemittermixin.js

@@ -38,7 +38,7 @@ extend( ProxyEmitter.prototype, EmitterMixin, {
 	 * Collection of native DOM listeners.
 	 *
 	 * @private
-	 * @property {Object} _domListeners
+	 * @type {Object}
 	 */
 
 	/**

+ 3 - 3
packages/ckeditor5-engine/src/ui/region.js

@@ -25,21 +25,21 @@ export default class Region {
 		/**
 		 * The name of the region.
 		 *
-		 * @property {String}
+		 * @type {String}
 		 */
 		this.name = name;
 
 		/**
 		 * Views which belong to the region.
 		 *
-		 * @property {Collection}
+		 * @type {Collection}
 		 */
 		this.views = new Collection();
 
 		/**
 		 * Element of this region (see {@link #init}).
 		 *
-		 * @property {HTMLElement}
+		 * @type {HTMLElement}
 		 */
 		this.element = null;
 	}

+ 1 - 1
packages/ckeditor5-engine/src/ui/template.js

@@ -26,7 +26,7 @@ export default class Template {
 		/**
 		 * Definition of this template.
 		 *
-		 * @property {TemplateDefinition}
+		 * @type {TemplateDefinition}
 		 */
 		this.definition = def;
 	}

+ 6 - 6
packages/ckeditor5-engine/src/ui/view.js

@@ -34,14 +34,14 @@ export default class View {
 		/**
 		 * Model of this view.
 		 *
-		 * @property {Model}
+		 * @type {Model}
 		 */
 		this.model = model || null;
 
 		/**
 		 * Regions of this view. See {@link #register}.
 		 *
-		 * @property {Collection}
+		 * @type {Collection}
 		 */
 		this.regions = new Collection( {
 			idProperty: 'name'
@@ -50,7 +50,7 @@ export default class View {
 		/**
 		 * Template of this view.
 		 *
-		 * @property {Object}
+		 * @type {Object}
 		 */
 		this.template = null;
 
@@ -58,7 +58,7 @@ export default class View {
 		 * Region selectors of this view. See {@link #register}.
 		 *
 		 * @private
-		 * @property {Object}
+		 * @type {Object}
 		 */
 		this._regionsSelectors = {};
 
@@ -66,7 +66,7 @@ export default class View {
 		 * Element of this view.
 		 *
 		 * @private
-		 * @property {HTMLElement}
+		 * @type {HTMLElement}
 		 */
 		this._element = null;
 
@@ -74,7 +74,7 @@ export default class View {
 		 * An instance of Template to generate {@link #_el}.
 		 *
 		 * @private
-		 * @property {Template}
+		 * @type {Template}
 		 */
 		this._template = null;
 	}