C# Класс Emmet.Engine.EmmetFileCallbacks

Implementation of IEmmetFile interface for JavaScript engine. See https://github.com/emmetio/emmet/blob/master/lib/interfaces/IEmmetFile.js for details.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

CreatePath() публичный Метод

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
Результат InternalHandle

GetExtension() публичный Метод

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
Результат InternalHandle

LocateFile() публичный Метод

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
Результат InternalHandle

Read() публичный Метод

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
Результат InternalHandle

Save() публичный Метод

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
Результат InternalHandle