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.
Afficher le fichier Open project: sergey-rybalkin/emmet.net Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat InternalHandle

GetExtension() public méthode

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
Résultat InternalHandle

LocateFile() public méthode

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
Résultat InternalHandle

Read() public méthode

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
Résultat InternalHandle

Save() public méthode

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
Résultat InternalHandle