compiler/jv_dart_compiler.st
changeset 7 cccc239c8833
parent 6 06efdfe62106
child 8 c2de4aaa2670
equal deleted inserted replaced
6:06efdfe62106 7:cccc239c8833
     1 "{ Package: 'jv:dart/compiler' }"
       
     2 
       
     3 LibraryDefinition subclass:#jv_dart_compiler
       
     4 	instanceVariableNames:''
       
     5 	classVariableNames:''
       
     6 	poolDictionaries:''
       
     7 	category:'* Projects & Packages *'
       
     8 !
       
     9 
       
    10 
       
    11 !jv_dart_compiler class methodsFor:'description'!
       
    12 
       
    13 excludedFromPreRequisites
       
    14     "list all packages which should be ignored in the automatic
       
    15      preRequisites scan. See #preRequisites for more."
       
    16 
       
    17     ^ #(
       
    18     )
       
    19 !
       
    20 
       
    21 preRequisites
       
    22     "list all required packages.
       
    23      This list can be maintained manually or (better) generated and
       
    24      updated by scanning the superclass hierarchies and looking for
       
    25      global variable accesses. (the browser has a menu function for that)
       
    26      Howevery, often too much is found, and you may want to explicitely
       
    27      exclude individual packages in the #excludedFromPrerequisites method."
       
    28 
       
    29     ^ #(
       
    30         #'stx:libbasic'    "LibraryDefinition - superclass of jv_dart "
       
    31     )
       
    32 ! !
       
    33 
       
    34 !jv_dart_compiler class methodsFor:'description - contents'!
       
    35 
       
    36 classNamesAndAttributes
       
    37     "lists the classes which are to be included in the project.
       
    38      Each entry in the list may be: a single class-name (symbol),
       
    39      or an array-literal consisting of class name and attributes.
       
    40      Attributes are: #autoload or #<os> where os is one of win32, unix,..."
       
    41 
       
    42     ^ #(
       
    43         "<className> or (<className> attributes...) in load order"
       
    44         #'jv_dart_compiler'
       
    45         #'Dart::ScannerBase'
       
    46         #'Dart::Parser'
       
    47         #'Dart::Scanner'
       
    48         #'Dart::ScannerTests'
       
    49         #'Dart::ParserError'
       
    50         #'Dart::SyntaxError'
       
    51         #'Dart::ScannerError'
       
    52         (#'Dart::ParserTests' autoload)
       
    53     )
       
    54 !
       
    55 
       
    56 extensionMethodNames
       
    57     "lists the extension methods which are to be included in the project.
       
    58      Entries are 2-element array literals, consisting of class-name and selector."
       
    59 
       
    60     ^ #(
       
    61     )
       
    62 ! !
       
    63 
       
    64 !jv_dart_compiler class methodsFor:'description - project information'!
       
    65 
       
    66 applicationIconFileName
       
    67     "Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file"
       
    68 
       
    69     ^ nil
       
    70     "/ ^ self applicationName
       
    71 !
       
    72 
       
    73 companyName
       
    74     "Return a companyname which will appear in <lib>.rc"
       
    75 
       
    76     ^ 'My Company'
       
    77 !
       
    78 
       
    79 description
       
    80     "Return a description string which will appear in vc.def / bc.def"
       
    81 
       
    82     ^ 'Class Library'
       
    83 !
       
    84 
       
    85 legalCopyright
       
    86     "Return a copyright string which will appear in <lib>.rc"
       
    87 
       
    88     ^ 'My CopyRight or CopyLeft'
       
    89 !
       
    90 
       
    91 productInstallDirBaseName
       
    92     "Returns a default installDir which will appear in <app>.nsi.
       
    93      This is usually not the one you want to keep"
       
    94 
       
    95     ^ (self package asCollectionOfSubstringsSeparatedByAny:':/') last
       
    96 !
       
    97 
       
    98 productName
       
    99     "Return a product name which will appear in <lib>.rc"
       
   100 
       
   101     ^ 'ProductName'
       
   102 ! !
       
   103 
       
   104 !jv_dart_compiler class methodsFor:'documentation'!
       
   105 
       
   106 version_HG
       
   107 
       
   108     ^ '$Changeset: <not expanded> $'
       
   109 ! !