C# Class Emmet.Engine.EmmetFileCallbacks

Implementation of IEmmetFile interface for JavaScript engine. See https://github.com/emmetio/emmet/blob/master/lib/interfaces/IEmmetFile.js for details.
ファイルを表示 Open project: sergey-rybalkin/emmet.net Class Usage Examples

Public Methods

Method Description
CreatePath ( V8Engine engine, bool isConstructorCall, InternalHandle self ) : InternalHandle

JavaScript callback. Creates absolute path by concatenating two arguments.

GetExtension ( V8Engine engine, bool isConstructorCall, InternalHandle self ) : InternalHandle

JavaScript callback. Returns file extension in lower case.

LocateFile ( V8Engine engine, bool isConstructCall, InternalHandle self ) : InternalHandle

JavaScript callback. Returns absolute path to the file that is referenced from the file in the editor. Implementation copied from the Emmet project source code.

Read ( V8Engine engine, bool isConstructCall, InternalHandle self ) : InternalHandle

JavaScript callback. Reads the specified file content and returns it as string.

Save ( V8Engine engine, bool isConstructorCall, InternalHandle self ) : InternalHandle

JavaScript callback. Saves the specified content to the file with the specified name.

Method Details

CreatePath() public method

JavaScript callback. Creates absolute path by concatenating two arguments.
public CreatePath ( V8Engine engine, bool isConstructorCall, InternalHandle self ) : InternalHandle
engine V8.Net.V8Engine
isConstructorCall bool
self InternalHandle
return InternalHandle

GetExtension() public method

JavaScript callback. Returns file extension in lower case.
public GetExtension ( V8Engine engine, bool isConstructorCall, InternalHandle self ) : InternalHandle
engine V8.Net.V8Engine
isConstructorCall bool
self InternalHandle
return InternalHandle

LocateFile() public method

JavaScript callback. Returns absolute path to the file that is referenced from the file in the editor. Implementation copied from the Emmet project source code.
public LocateFile ( V8Engine engine, bool isConstructCall, InternalHandle self ) : InternalHandle
engine V8.Net.V8Engine
isConstructCall bool
self InternalHandle
return InternalHandle

Read() public method

JavaScript callback. Reads the specified file content and returns it as string.
public Read ( V8Engine engine, bool isConstructCall, InternalHandle self ) : InternalHandle
engine V8.Net.V8Engine
isConstructCall bool
self InternalHandle
return InternalHandle

Save() public method

JavaScript callback. Saves the specified content to the file with the specified name.
public Save ( V8Engine engine, bool isConstructorCall, InternalHandle self ) : InternalHandle
engine V8.Net.V8Engine
isConstructorCall bool
self InternalHandle
return InternalHandle