Unit 'Pas2jsCompiler' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#pastojs]

TPas2jsCompiler

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Declaration

Source position: pas2jscompiler.pp line 483

type TPas2jsCompiler = class

protected

  function CreateImportList;

  function CreateImportStatement;

  function CreateJSMapper; virtual;

  function CreateJSWriter(); virtual;

  function CreateLog; virtual;

  function CreateMacroEngine; virtual;

  function CreateSrcMap(); virtual;

  function CreateOptimizer;

  function CreateSetOfCompilerFiles(); virtual; abstract;

  function CreateFS; virtual; abstract;

  function FormatPath();

  function FullFormatPath();

  procedure WritePrecompiledFormats; virtual;

  procedure WriteHelpLine();

  function LoadFile();

  procedure HandleLinkLibStatement();

  function CreateCompilerFile(); virtual;

  procedure HandleOptionPCUFormat(); virtual;

  function HandleOptionPaths(); virtual;

  function HandleOptionJ(); virtual;

  function HandleOptionM(); virtual;

  procedure HandleOptionConfigFile(); virtual;

  procedure HandleOptionInfo();

  function HandleOptionOptimization();

  function DoWriteJSFile(); virtual;

  procedure Compile();

  procedure ProcessQueue;

  function MarkNeedBuilding();

  procedure OptimizeProgram(); virtual;

  procedure CreateJavaScript();

  procedure FinishSrcMap(); virtual;

  procedure WriteSingleJSFile();

  procedure WriteJSFiles();

  procedure InitParamMacros; virtual;

  procedure ClearDefines;

  procedure RaiseInternalError();

  function GetExitCode; virtual;

  procedure SetExitCode(); virtual;

  procedure SetWorkingDir(); virtual;

  procedure CreateResourceSupport; virtual;

public

  constructor Create; virtual;

  destructor Destroy; override;

  procedure Reset; virtual;

  procedure ParamFatal();

  procedure Run();

  procedure Terminate();

  class function GetVersion();

  procedure WriteHelp;

  procedure WriteLogo;

  procedure WriteEncoding;

  procedure WriteVersionLine;

  procedure WriteOptions;

  procedure WriteDefines;

  procedure WriteUsedTools;

  procedure WriteFoldersAndSearchPaths;

  procedure WriteInfo;

  function GetShownMsgTypes;

  procedure AddDefine();

  procedure RemoveDefine();

  function IsDefined();

  procedure SetOption();

  function GetUnitInfo();

  procedure CheckUnitAlias(); virtual;

  function FindFileWithUnitFilename();

  procedure LoadModuleFile();

  function FindUnitJSFileName();

  function FindLoadedUnit();

  procedure AddUsedUnit();

  function ExpandFileName();

  property CompilerExe: string; [rw]

  property DefaultNamespace: string; [r]

  property Defines: TStrings; [r]

  property FS: TPas2JSFS; [rw]

  property OwnsFS: Boolean; [rw]

  property FileCount: Integer; [r]

  property InterfaceType: TPasClassInterfaceType; [rw]

  property Log: TPas2jsLogger; [r]

  property MainFile: TPas2jsCompilerFile; [r]

  property ModeSwitches: TModeSwitches; [rw]

  property Options: TP2jsCompilerOptions; [rw]

  property ConverterGlobals: TPasToJSConverterGlobals; [rw]

  property ResolverHub: TPas2JSResolverHub; [r]

  property ParamMacros: TPas2jsMacroEngine; [r]

  property PrecompileGUID: TGUID; [rw]

  property RTLVersionCheck: TP2jsRTLVersionCheck; [rw]

  property SrcMapEnable: Boolean; [rw]

  property SrcMapSourceRoot: string; [rw]

  property SrcMapInclude: Boolean; [rw]

  property SrcMapXSSIHeader: Boolean; [rw]

  property SrcMapFilenamesAbsolute: Boolean; [rw]

  property ShowDebug: Boolean; [rw]

  property ShowFullPaths: Boolean; [rw]

  property ShowLogo: Boolean; [rw]

  property ShowTriedUsedFiles: Boolean; [rw]

  property ShowUsedTools: Boolean; [rw]

  property SkipDefaultConfig: Boolean; [rw]

  property TargetPlatform: TPasToJsPlatform; [rw]

  property TargetProcessor: TPasToJsProcessor; [rw]

  property WPOAnalyzer: TPas2JSAnalyzer; [r]

  property WriteDebugLog: Boolean; [rw]

  property WriteMsgToStdErr: Boolean; [rw]

  property AllJSIntoMainJS: Boolean; [rw]

  property ExitCode: LongInt; [rw]

  property InsertFilenames: TStringList; [r]

  property AppendFileNames: TStringList; [r]

  property MainJSFile: string; [rw]

  property MainSrcFile: string; [rw]

  property SrcMapBaseDir: string; [rw]

  property Namespaces: TStringList; [r]

  property NamespacesFromCmdLine: Integer; [r]

  property ResourceMode: TResourceMode; [rw]

  property ResourceOutputFile: string; [rw]

  property ConfigSupport: TPas2JSConfigSupport; [rw]

  property PostProcessorSupport: TPas2JSPostProcessorSupport; [rw]

end;

Inheritance

TPas2jsCompiler

|

TObject


Documentation generated on: 2023-03-18