Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
OOCheckJSSyntaxVerifierStage Class Reference

#include <OOCheckJSSyntaxVerifierStage.h>

+ Inheritance diagram for OOCheckJSSyntaxVerifierStage:
+ Collaboration diagram for OOCheckJSSyntaxVerifierStage:

Instance Methods

(NSString *) - name [implementation]
 
(BOOL) - shouldRun [implementation]
 
(void) - run [implementation]
 
- Instance Methods inherited from OOFileHandlingVerifierStage
(NSSet *) - dependencies [implementation]
 
(NSSet *) - dependents [implementation]
 
- Instance Methods inherited from OOOXPVerifierStage
(OOOXPVerifier *) - verifier
 
(BOOL) - completed
 
(id) - init [implementation]
 
(void) - dealloc [implementation]
 
(id) - description [implementation]
 
(void) - setVerifier: [implementation]
 
(BOOL) - isDependentOf: [implementation]
 
(void) - registerDependency: [implementation]
 
(void) - dependencyRegistrationComplete [implementation]
 
(BOOL) - canRun [implementation]
 
(void) - performRun [implementation]
 
(void) - noteSkipped [implementation]
 
(NSSet *) - resolvedDependencies [implementation]
 
(NSSet *) - resolvedDependents [implementation]
 
(void) - registerDepedent: [implementation]
 
(void) - dependencyCompleted: [implementation]
 

Detailed Description

Definition at line 32 of file OOCheckJSSyntaxVerifierStage.h.

Method Documentation

◆ name

- (NSString *) name
implementation

Reimplemented from OOOXPVerifierStage.

Definition at line 36 of file OOCheckJSSyntaxVerifierStage.m.

42{
43 return kStageName;
44}
static NSString *const kStageName

References kStageName.

◆ run

- (void) run
implementation

Reimplemented from OOOXPVerifierStage.

Definition at line 36 of file OOCheckJSSyntaxVerifierStage.m.

57{
58 OOFileScannerVerifierStage *fileScanner = nil;
59 NSArray *scriptFiles = nil;
60 NSString *scriptFile = nil;
61 NSString *fileExt = nil;
62 NSString *filePath = nil;
63
64 fileScanner = [[self verifier] fileScannerStage];
65 scriptFiles = [fileScanner filesInFolder:@"Scripts"];
66
67 if (scriptFiles == nil) return;
68
70
71 foreach (scriptFile, scriptFiles)
72 {
73 fileExt = [[scriptFile pathExtension] lowercaseString];
74 if ([fileExt isEqualToString:@"js"] || [fileExt isEqualToString:@"es"])
75 {
76 filePath = [fileScanner pathForFile:scriptFile inFolder:@"Scripts" referencedFrom:nil checkBuiltIn:NO];
77
78 OOScript *script = [OOJSScript scriptWithPath:filePath properties:nil];
79 (void)script;
80 }
81 }
82
83
84}
return nil
NSString * pathForFile:inFolder:referencedFrom:checkBuiltIn:(NSString *file,[inFolder] NSString *folder,[referencedFrom] NSString *context,[checkBuiltIn] BOOL checkBuiltIn)
NSArray * filesInFolder:(NSString *folder)
id scriptWithPath:properties:(NSString *path,[properties] NSDictionary *properties)
Definition OOJSScript.m:112
void setShowErrorLocations:(BOOL value)
OOJavaScriptEngine * sharedEngine()

◆ shouldRun

- (BOOL) shouldRun
implementation

Reimplemented from OOOXPVerifierStage.

Definition at line 36 of file OOCheckJSSyntaxVerifierStage.m.

48{
49 OOFileScannerVerifierStage *fileScanner = nil;
50
51 fileScanner = [[self verifier] fileScannerStage];
52 return ([[fileScanner filesInFolder:@"Scripts"] count] > 0);
53}
unsigned count

The documentation for this class was generated from the following files: