Show
Ignore:
Timestamp:
08/12/08 23:46:19 (5 months ago)
Author:
Chuck.Esterbrook
Message:

New .no-warnings. compiler directive to suppress all warnings on a given line of source code. ticket:37
Code cleanup. ticket:36

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Source/CobraParser.cobra

    r1573 r1574  
    220220                        .throwError(te.token, msg) 
    221221 
     222                # TODO: fold all occcurrences of this lookup to a helper 
     223                compiler = .typeProvider to? Compiler 
     224                if compiler, compiler.noWarningLines = tokenizer.noWarningLines 
     225 
    222226                if tokenizer.errors.count 
    223227                        for error in tokenizer.errors 
    224228                                .recordError(error.token, error.message) 
    225                          
     229 
    226230                _nextTokenIndex = 0 
    227231 
     
    549553                                        .throwError('Compiler directive "number": unrecognized type "[typeName.text]". Must be one of "decimal", "float", "float32" or "float64".') 
    550554                                .expect('EOL') 
    551                                 comp = .typeProvider to Compiler? 
     555                                comp = .typeProvider to? Compiler 
    552556                                if comp, comp.numberTypeName = typeName.text 
    553557                        else