File tree Expand file tree Collapse file tree 3 files changed +22
-26
lines changed
Expand file tree Collapse file tree 3 files changed +22
-26
lines changed Original file line number Diff line number Diff line change 11// generated by codegen/codegen.py, remove this comment if you wish to edit this file
22private import codeql.swift.generated.File
33
4- class File extends FileBase { }
4+ class File extends FileBase {
5+ /** toString */
6+ string toString ( ) { result = getAbsolutePath ( ) }
7+
8+ /** Gets the name of this file. */
9+ string getName ( ) { files ( this , result ) }
10+
11+ /** Gets the absolute path of this file. */
12+ string getAbsolutePath ( ) { result = getName ( ) }
13+
14+ /** Gets the full name of this file. */
15+ string getFullName ( ) { result = getAbsolutePath ( ) }
16+
17+ /** Gets the URL of this file. */
18+ string getURL ( ) { result = "file://" + this .getAbsolutePath ( ) + ":0:0:0:0" }
19+
20+ /** Gets the base name of this file. */
21+ string getBaseName ( ) {
22+ result = this .getAbsolutePath ( ) .regexpCapture ( ".*/(([^/]*?)(?:\\.([^.]*))?)" , 1 )
23+ }
24+ }
Original file line number Diff line number Diff line change 11/** Top-level import for the Swift language pack */
22
3- import swift.File
3+ import codeql. swift.elements
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments